Skip to content
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

pandas upgrade causes read_table warnings #352

Closed
ktakimoto opened this issue Jun 3, 2019 · 9 comments
Closed

pandas upgrade causes read_table warnings #352

ktakimoto opened this issue Jun 3, 2019 · 9 comments

Comments

@ktakimoto
Copy link

read_table now causes pink warning boxes in notebooks since pd.read_table has been deprecated in favor of pd.read_csv

@adnanhemani
Copy link
Member

I've done some reading on the Pandas GH, it seems like the read_table method will now be getting un-deprecated in v0.25.0 (release scheduled for 07/01/19). As such, I'd recommend to not make any changes and simply upgrade to the latest version of Pandas when it is released. AFAIK, datahub is running Pandas v0.23.4, so the deprecation warning should not show up there at all.

@davidwagner
Copy link
Member

Have the pandas folks documented that decision anywhere? I don't see any decision in that link to the issue over on Pandas to undeprecate read_table.

@deculler
Copy link
Contributor

deculler commented Jun 9, 2019 via email

@adnanhemani
Copy link
Member

@davidwagner Yes, if you go to the bottom of the issue that I linked to above, the Pandas folks have added the issue to the v0.25.0 release and the last comment says something similar.

@deculler as far as I know (and based off the testing I’ve done) there is no warning in Datahub at this time (since the version of pandas installed on that server is a couple versions old). Are you seeing this on there or locally?

@deculler
Copy link
Contributor

deculler commented Jun 10, 2019 via email

@davidwagner
Copy link
Member

I'm inclined to think we should change read_table to read_csv in the datascience library. I don't see any downside, as it seems to have the same functionality and is just a different name for the code; and it makes datascience work more cleanly with all versions of pandas, so it takes this issue off the table.

@adnanhemani
Copy link
Member

I'm mainly scared of an API change on this function since it's so vital to this library and I don't understand the edge cases well enough - I have a feeling any change will affect the edge cases (non csv files that are currently supported). But I can work on a patch if everyone else thinks it might be best to switch over.

@deculler
Copy link
Contributor

deculler commented Jun 10, 2019 via email

@davidwagner
Copy link
Member

Fixed by #362

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants