Skip to content

Conversation

@phofl
Copy link
Member

@phofl phofl commented Mar 29, 2021

stumbled accross this one

@phofl phofl added the DataFrame DataFrame data structure label Mar 29, 2021
- Bug in :func:`pandas.util.show_versions` where console JSON output was not proper JSON (:issue:`39701`)
- Bug in :meth:`DataFrame.convert_dtypes` incorrectly raised ValueError when called on an empty DataFrame (:issue:`40393`)

- Bug in aggregation functions for :class:`DataFrame` not respecting ``numeric_only`` argument when ``level`` keyword was given (:issue:`40660`)
Copy link
Member

Choose a reason for hiding this comment

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

level is really doing a groupby, I think it make senses to move the note there.

Copy link
Member

Choose a reason for hiding this comment

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

At least, I've always thought about level as being an alias for groupby(level=...).

Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, generally try to avoid the 'Other' section.

nb. we have a PR somewhere deprecating level= to these

Copy link
Member Author

Choose a reason for hiding this comment

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

Thx, was not sure if groupby was the correct place.

This bug is actually a good argument for the deprecation and removal...

@rhshadrach rhshadrach added this to the 1.3 milestone Apr 1, 2021
@jreback jreback added Bug Timedelta Timedelta data type labels Apr 2, 2021
- Bug in :func:`pandas.util.show_versions` where console JSON output was not proper JSON (:issue:`39701`)
- Bug in :meth:`DataFrame.convert_dtypes` incorrectly raised ValueError when called on an empty DataFrame (:issue:`40393`)

- Bug in aggregation functions for :class:`DataFrame` not respecting ``numeric_only`` argument when ``level`` keyword was given (:issue:`40660`)
Copy link
Contributor

Choose a reason for hiding this comment

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

yeah, generally try to avoid the 'Other' section.

nb. we have a PR somewhere deprecating level= to these

tm.assert_series_equal(result, expected)


@pytest.mark.parametrize("meth", ["max", "min", "sum", "mean", "median"])
Copy link
Contributor

Choose a reason for hiding this comment

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

hmm can you put these with similar tests, maybe in test_reductions?

Copy link
Member Author

Choose a reason for hiding this comment

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

Moved

@jreback jreback merged commit 13d651d into pandas-dev:master Apr 8, 2021
@jreback
Copy link
Contributor

jreback commented Apr 8, 2021

thanks @phofl

@phofl phofl deleted the 40660 branch April 9, 2021 20:08
JulianWgs pushed a commit to JulianWgs/pandas that referenced this pull request Jul 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug DataFrame DataFrame data structure Timedelta Timedelta data type

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: dataframe sum with level drops timedelta columns

3 participants