You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rolling used to work in prior versions (e.g. 0.20.3) on a dataframe that included string columns. When running the above code in version 0.23.4, the following error is raised:
The text was updated successfully, but these errors were encountered:
alporter08
changed the title
Rolling().sum() on DataFrame containing string columns returns a TypeError
df.rolling(...).sum() on DataFrame containing string columns returns a TypeError
Nov 2, 2018
Code Sample
Original dataframe:
Problem description
Rolling used to work in prior versions (e.g. 0.20.3) on a dataframe that included string columns. When running the above code in version 0.23.4, the following error is raised:
Expected Output
In 0.20.3, the output is:
Output of
pd.show_versions()
pandas: 0.23.4
pytest: 3.0.7
pip: 18.1
setuptools: 40.0.0
Cython: 0.25.2
numpy: 1.14.2
scipy: 0.19.0
pyarrow: None
xarray: None
IPython: 5.3.0
sphinx: 1.5.6
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: 1.2.1
tables: 3.3.0
numexpr: 2.6.2
feather: None
matplotlib: 2.0.2
openpyxl: 2.4.7
xlrd: 1.0.0
xlwt: 1.2.0
xlsxwriter: 0.9.6
lxml: 3.7.3
bs4: 4.6.0
html5lib: 0.999
sqlalchemy: 1.1.9
pymysql: None
psycopg2: None
jinja2: 2.9.6
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
The text was updated successfully, but these errors were encountered: