Skip to content

pandas.rolling.max() shut down #24195

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

Closed
kid3night opened this issue Dec 10, 2018 · 5 comments
Closed

pandas.rolling.max() shut down #24195

kid3night opened this issue Dec 10, 2018 · 5 comments

Comments

@kid3night
Copy link

kid3night commented Dec 10, 2018

#### Code Sample, a copy-pastable example if possible

# Your code here
import pandas as pd
z = pd.read_hdf('sample_data.h5', key='d')
z.rolling('9S', closed='left').max()

#https://github.com/kid3night/pandas_issue_rolling/blob/master/sample_data.h5
#(link of sample_data.h5)

Problem description

I got a sample data and want to use it to get the rolling max, min, sum etc.
But every time I did rolling max/min on it, the python kernal would shut down and shows 'python.exe has stopped working' I have uploaded the sample data, and the link is https://github.com/kid3night/pandas_issue_rolling/blob/master/sample_data.h5

For documentation-related issues, you can check the latest versions of the docs on master here:

https://pandas-docs.github.io/pandas-docs-travis/

If the issue has not been resolved there, go ahead and file it in the issue tracker.

Expected Output

Output of pd.show_versions()

[paste the output of pd.show_versions() here below this line]
INSTALLED VERSIONS

commit: None
python: 3.6.5.final.0
python-bits: 64
OS: Windows
OS-release: 10
machine: AMD64
processor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel
byteorder: little
LC_ALL: None
LANG: None
LOCALE: None.None

pandas: 0.23.0
pytest: 3.5.1
pip: 10.0.1
setuptools: 39.1.0
Cython: 0.28.2
numpy: 1.14.3
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: 1.7.4
patsy: 0.5.0
dateutil: 2.7.3
pytz: 2018.4
blosc: None
bottleneck: 1.2.1
tables: 3.4.3
numexpr: 2.6.5
feather: None
matplotlib: 2.2.2
openpyxl: 2.5.3
xlrd: 1.1.0
xlwt: 1.3.0
xlsxwriter: 1.0.4
lxml: 4.2.1
bs4: 4.6.0
html5lib: 1.0.1
sqlalchemy: 1.2.7
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: 0.1.6
fastparquet: None
pandas_gbq: None
pandas_datareader: None

@jreback
Copy link
Contributor

jreback commented Dec 10, 2018

needs an actual copy pastable example one can run w/o a data input file

@kid3night
Copy link
Author

needs an actual copy pastable example one can run w/o a data input file

The raws of the data are 1.8m+ and hard to paste.

@jreback
Copy link
Contributor

jreback commented Dec 10, 2018

@kid3night and how would you expect anyone to replicate this? pls reopen if you can show a reproducible example.

@jreback jreback closed this as completed Dec 10, 2018
@kid3night
Copy link
Author

@kid3night and how would you expect anyone to replicate this? pls reopen if you can show a reproducible example.

I put the sample data link on it. So you mean the data link is not acceptable?

@jreback
Copy link
Contributor

jreback commented Dec 10, 2018

links are not acceptable. a copy pastable example that replicates is needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants