-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Stateful/Wrong Test test_agg_timezone_round_trip #26864
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
Comments
Another one from tests.indexing.test_datetime test_indexing_with_datetime_tz
This works in master, but I don't think it should. |
no there is some state modification in groupby atm (there is an issue) |
Are you saying these tests are correct? Because if so I'm extra confused |
I should look more in detail to whether the tested output is correct or not (what are the rules about the key column when doing apply?). But for the actual issue, as you notice, you can get different answers from the same call, depending on what was called before (the state modification Jeff mentions). Running the example:
which is of course obviously a bug. But I am not fully sure whether it's the first or the second output of that call that is the desired behaviour (I think the first, meaning that the test is "incorrect") |
@mroeschke am i remembering right that you've been working on groupby-related stuff recently? any idea how this could become stateful? (the test mentioned in the OP has been fixed, but that fix did not address the potential for statefulness) |
Sorry I've been in the weeds of rolling instead of groupby. I haven't really dug into the ops of groupby ever; just the high level methods at times. |
This was due to the column selection context manager which has since been removed. Also groupby acting on the grouping columns is now deprecated. Closing. |
from pandas/tests/groupby/aggregate/test_other.py test_agg_timezone_round_trip:
The last assertion here is failing in a WIP branch, so I'm troubleshooting it on master and finding that it fails if I skip the first three assertions:
Current thought is that the assertion is wrong and the test along with it. Thoughts @jreback @jorisvandenbossche ? (I don't do much in this part of the code; anyone else I should be pinging for it?)
The text was updated successfully, but these errors were encountered: