Skip to content

ENH: Add Storage Options kwarg to read_table #43239

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

Merged
merged 4 commits into from
Aug 31, 2021

Conversation

alimcmaster1
Copy link
Member

@alimcmaster1 alimcmaster1 commented Aug 26, 2021

Follow up from #35381 - looks like this was missed

Not sure if this is an enhancements or a bug given the docs already mention this arg is supported.
https://pandas.pydata.org/docs/reference/api/pandas.read_table.html

@alimcmaster1 alimcmaster1 added the IO Data IO issues that don't fit into a more specific label label Aug 26, 2021
@alimcmaster1 alimcmaster1 added this to the 1.4 milestone Aug 26, 2021
Copy link
Member

@lithomas1 lithomas1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but I think this needs a whatsnew.

@@ -122,6 +123,17 @@ def test_csv_options(fsspectest):
assert fsspectest.test[0] == "csv_read"


def test_read_table_options(fsspectest):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we parametrize the test added back then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically changing the order of the arguments might break user code, but I don't think this is a real issue?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Technically changing the order of the arguments might break user code, but I don't think this is a real issue?

Its a kwarg do you have an example of how this might break user code?

Copy link
Member Author

@alimcmaster1 alimcmaster1 Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we parametrize the test added back then?

Fair point they could be. The pattern used in the following tests in this file is the same. But I think thats better off as a sep issue.

test_csv_options
test_excel_options
test_arrowparquet_options
test_fastparquet_options
test_feather_options
test_pickle_options

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They aren't key word only yet, but as I said probably not relevant.

Yeah agree with the tests. Have not looked that closely, just checked the linked pr and saw that the test was the same, so was wondering

@alimcmaster1
Copy link
Member Author

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@phofl phofl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@alimcmaster1 alimcmaster1 merged commit ce4d7a3 into pandas-dev:master Aug 31, 2021
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QST: Why is storage_options parameter missed in read_table method?
3 participants