-
Notifications
You must be signed in to change notification settings - Fork 4k
Add support for pandas 2.0 #6507
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
Add support for pandas 2.0 #6507
Conversation
|
Some seemingly unrelated tests now fail on CI with the new updated set of dependencies. The root cause seems to be that the tests in question do not work when From a quick look at the tornado docs, the This seems like a separate issue to the pandas dependency. Help fixing this would be welcome! |
|
@connortann Thanks a lot for the PR and the info about the CI issue 👍 we will most likely merge this PR today. I also just merged a fix for the tornado issue into develop. I assume this will also fix the CI in this PR once you merge with the latest develop. |
lukasmasuch
left a comment
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.
LGTM 👍
4936fe4 to
0f6c5a9
Compare
Co-authored-by: Lukas Masuch <Lukas.Masuch@gmail.com>
* develop: Removing viz-1.8.0.min.js (streamlit#6520) st.experimental_connection: The big merge (streamlit#6487) Add additional attributions (streamlit#6536) Fix code block font change (streamlit#6535) Fully remove email from new session message (streamlit#6516) Clarify what telemetry data our backend stores (streamlit#6463) Update emojis to latest state (streamlit#6532) Add support for pandas 2.0 (streamlit#6507) Fix regression in visibility of `st.code`'s copy-to-clipboard button (streamlit#6498) Fix E2E image (streamlit#6524) Add tenacity as dependency (streamlit#6529)
📚 Context
Adds support for pandas 2.0. Closes #6413
Pandas 2.0 has now been released for several weeks; however, streamlit's
setup.pyhas a pin that prevents use with pandas 2. I believe the required code changes in streamlit to allow compatibility with pandas have already been implemented by #6378.The remaining tasks seem to be to remove the prevous dependency constraint, and to ensure the test suite runs against the new version of pandas and passes.
🧠 Description of Changes
Adds support for pandas 2.0 by removing the pin in
setup.py🧪 Testing Done
As I understand, this change will mean the
py_version (MAX)CI job will test against pandas 2.X, and thepy_version (MIN)job will continue testing against 1.X.However, in future perhaps it's worth expanding these tests to ensure that streamlit will always be tested against the different major versions of pandas, regardless of which python versions are supported? Or, more generally, expanding the CI to test streamlit against the lower bound versions of all dependencies? From a previous comment:
Originally posted by @lukasmasuch in #6378 (comment)
🌐 References
Does this depend on other work, documents, or tickets?
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.