-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: add pyarrow autogenerated prefix #55115
BUG: add pyarrow autogenerated prefix #55115
Conversation
StringIO(data), | ||
header=None, | ||
usecols=[0, 1], | ||
dtype="object", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test with string[pyarrow]
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure things. It works fine so long as I make the comparison dataframe string[pyarrow] too of course:
StringIO(data),
header=None,
usecols=[0, 1],
dtype="string[pyarrow]",
dtype_backend="pyarrow",
engine="pyarrow",
)
expected = DataFrame([
["a", "i"], ["b", "j"]],
dtype="string[pyarrow]"
)
tm.assert_frame_equal(result, expected)
I'll update the PR with the change.
… `DataFrame` to ignore passed arguments) (pandas-dev#55089) * fixes pandas-dev#55009 * update documentation * write documentation * add test * change formatting * cite DataDrame directly in docs Co-authored-by: Matthew Roeschke <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Matthew Roeschke <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Please review and address the failed pre-commit failure |
wasn't seeing any issue in my local pre-commit for some reason |
Thanks @hedeershowk |
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Any suggestions where to add a test for this bug (and fix)?edit: took a shot and put it in
tests/io/parser/test_header.py