-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
BUG: add pyarrow autogenerated prefix #55115
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
Changes from 11 commits
cf5288c
7d1738a
28eb4f3
1b0ac59
cb39950
b1d7353
20149c1
0b1dfc4
f1f479e
be1d354
f6ffe91
136b811
955e108
e9af320
ee0fba4
c0c58a0
4fc3ed9
f19b3e9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -684,3 +684,21 @@ def test_header_delim_whitespace(all_parsers): | |
result = parser.read_csv(StringIO(data), delim_whitespace=True) | ||
expected = DataFrame({"a,b": ["1,2", "3,4"]}) | ||
tm.assert_frame_equal(result, expected) | ||
|
||
|
||
def test_usecols_no_header_pyarrow(pyarrow_parser_only): | ||
parser = pyarrow_parser_only | ||
data = """ | ||
a,i,x | ||
b,j,y | ||
""" | ||
result = parser.read_csv( | ||
StringIO(data), | ||
header=None, | ||
usecols=[0, 1], | ||
dtype="object", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you test with There was a problem hiding this comment. Choose a reason for hiding this commentThe 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:
I'll update the PR with the change. |
||
dtype_backend="pyarrow", | ||
engine="pyarrow", | ||
) | ||
expected = DataFrame([["a", "i"], ["b", "j"]]) | ||
tm.assert_frame_equal(result, expected) |
Uh oh!
There was an error while loading. Please reload this page.