"RecursionError: maximum recursion depth exceeded while calling a Python object" when using groupby, resample, and agg #23568
Labels
Apply
Apply, Aggregate, Transform, Map
Bug
Closing Candidate
May be closeable, needs more eyeballs
Groupby
Resample
resample method
Code Sample, a copy-pastable example if possible
Problem description
This issue is derived from #23531 and affects the current master branch.
Using
agg
raises aRecursionError
while using methodsmean
andstd
work as expected, i.e.:Here's a chunk of stack trace:
Expected Output
A dataframe with the combined outputs of:
Output of
pd.show_versions()
INSTALLED VERSIONS
commit: None
python: 3.6.6.final.0
python-bits: 64
OS: Darwin
OS-release: 16.7.0
machine: x86_64
processor: i386
byteorder: little
LC_ALL: en_US.UTF-8
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.24.0.dev0+936.gcf4c0b616
pytest: 3.7.1
pip: 18.0
setuptools: 39.1.0
Cython: 0.29
numpy: 1.14.5
scipy: 1.1.0
pyarrow: None
xarray: None
IPython: 6.4.0
sphinx: 1.7.5
patsy: None
dateutil: 2.7.3
pytz: 2018.5
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.2.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: 1.2.12
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
gcsfs: None
The text was updated successfully, but these errors were encountered: