-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
pd.DataFrame.expanding bug with axis = 1 #23372
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
That looks very odd indeed! Investigation and PR are welcome! |
its using the wrong axis for computing the window length, IOW its always using axis=0 see Expanding._get_window, should be easy patch. |
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Oct 29, 2018
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Oct 30, 2018
gfyoung
added a commit
to forking-repos/pandas
that referenced
this issue
Oct 31, 2018
jreback
pushed a commit
that referenced
this issue
Nov 1, 2018
tm9k1
pushed a commit
to tm9k1/pandas
that referenced
this issue
Nov 19, 2018
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
Pingviinituutti
pushed a commit
to Pingviinituutti/pandas
that referenced
this issue
Feb 28, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
axis = 1 on pd.DataFrame.expanding doesn't seem to be working as expected; a horizontal expanding window. Instead, the window size appears to be constrained to the number of rows.
axis = 0 is working fine as a vertical expanding window
Expected Output
Output of
pd.show_versions()
pandas: 0.23.4
pytest: None
pip: 18.0
setuptools: 40.4.3
Cython: 0.29
numpy: 1.15.2
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.5.0
sphinx: None
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.3
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: 1.2.12
pymysql: None
psycopg2: 2.7.5 (dt dec pq3 ext lo64)
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: