Skip to content

BUG: dataframe.rolling along rows drops float16 #42884

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

Merged
merged 2 commits into from
Aug 5, 2021

Conversation

debnathshoham
Copy link
Member

@jreback jreback added this to the 1.4 milestone Aug 4, 2021
@jreback jreback added Window rolling, ewma, expanding Dtype Conversions Unexpected or buggy dtype conversions labels Aug 4, 2021
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

pls add a whatsnew note, bug fixes 1.4, rolling section

@@ -1432,3 +1432,30 @@ def test_rolling_float_dtype(float_dtype):
expected = DataFrame({"A": [np.nan] * 5, "B": range(10, 20, 2)}, dtype=float_dtype)
result = df.rolling(2, axis=1).sum()
tm.assert_frame_equal(result, expected, check_dtype=False)


def test_rolling_rows():
Copy link
Contributor

Choose a reason for hiding this comment

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

-> test_rolling_numeric_dtypes

# GH#41779
df = DataFrame(np.arange(24).reshape(4, 6), columns=list("abcdef")).astype(
{
"a": "float16",
Copy link
Contributor

Choose a reason for hiding this comment

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

can you add the uint dtypes as well

@jreback jreback merged commit f73e6c0 into pandas-dev:master Aug 5, 2021
@jreback
Copy link
Contributor

jreback commented Aug 5, 2021

thanks @debnathshoham failures unrelated

@debnathshoham debnathshoham deleted the gh41779 branch August 5, 2021 12:02
feefladder pushed a commit to feefladder/pandas that referenced this pull request Sep 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Window rolling, ewma, expanding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: DataFrame.rolling(axis=1) operations drop/ignore float16 and float32 columns
2 participants