-
Notifications
You must be signed in to change notification settings - Fork 16
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 for pandas 2.1
#335
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #335 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 34 34
Lines 2858 2857 -1
=========================================
- Hits 2858 2857 -1
☔ View full report in Codecov by Sentry. |
@lukashergt if you have any ideas how to fix the documentation I'm all ears... error is only happening with pandas2.1 |
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.
Sorry, had a deadline this morning, so was a bit pre-occupied.
@lukashergt if you have any ideas how to fix the documentation I'm all ears... error is only happening with pandas2.1
We have to remove some of the doc inheritance stuff. The problem is that pandas doesn't document all their classes, so if we inherit from those, we mustn't tell autodoc to try and inherit their non-existent docs...
…hould have arguably been in the first place
Would be good if someone could double check that 43c5be5 is a solid change. |
|
The only other thing is inevitably anesthetic will break again when pandas 2.2 releases. While it is useful that the tests flag this up very dramatically, perhaps it isn't the best way of going forward since it means that |
I almost changed this to a patch version increase, but I think the new inclusion of |
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.
The only other thing is inevitably anesthetic will break again when pandas 2.2 releases. While it is useful that the tests flag this up very dramatically, perhaps it isn't the best way of going forward since it means that
pip install anesthetic
doesn't work for a while. I wonder if restricting matplotlib and pandas to their current minor version in thepyproject.toml
+ a "use latest versions" test might be sensible?
Let's wait for @williamjameshandley to comment on #343, too. But if we decide to do that, would we want to implement that as part of this PR or in a separate PR?
Ah, nevermind, already building in #344... |
yes, definitely its own PR (I even bothered making an issue!) |
I keep forgetting the best course of action when changing required tests... @williamjameshandley, this PR drops python 3.8 checks and instead updates to 3.11. How best to handle the expected but not existing 3.8 checks? |
OK that should no longer require 3.8 to pass. I guess my only query with this is why this is 2.4.0 rather than 2.3.5? |
^^ |
Is this an API change? -- Why was this necessary? |
It was motivated to make the documentation for Perhaps I am mistaken, but I don't think |
Perhaps not a quick PR - I've just noticed that |
I've looked a bit closer, and I don't think this change to |
Now this PR is purely changes for pandas 2.1, think I'm happy with it now |
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.
I've looked a bit closer, and I don't think this change to labelled_pandas fixes this properly, so I will revert this change and make a new issue
So there might be some stuff in Samples
that maybe should already be part of LabelledDataFrame
...? Yes, would be good to track that in an issue and link to this PR.
Description
pandas 2.1
has introduced further API changes. I think it will be necessary in future to restrictanesthetic
to a minorpandas
versionpandas 2.1
also does not support python 3.8Fixes #336
Bugs:
tm.close()
removedyield; plt.close("all")
temporary_seed
incompress_weights
int
Issue with loc and masks in groupby stats tests
tests/test_samples.py::test_groupby_stats()
python 3.8
pandas2.1
isn't compatible with python3.8, so remove this requirement and change other tests that use it. I have used python3.11 as this is the fastest available and I see no reason not todocumentation
(new) warnings
label-less casting name to label
adding labels as names
recall when we made the labels of a
LabelledDataFrame
the names of the slicedSeries
this complains that:
I think that we are using the newer style of behaviour, so I don't think there is a new problem here. Time will tell...
Checklist:
flake8 anesthetic tests
)pydocstyle --convention=numpy anesthetic
)python -m pytest
)