agg method with list of functions does not work with axis=1 #16679
Labels
Numeric Operations
Arithmetic, Comparison, and Logical operations
Reshaping
Concat, Merge/Join, Stack/Unstack, Explode
Milestone
Code Sample
Problem description
Calling the
agg
method on a frame withaxis=1
raises aTypeError
:Expected Output
frame.agg(['mean', 'std'], axis=1)
should produce this:Output of
pd.show_versions()
pandas: 0.20.2
pytest: 3.0.4
pip: 9.0.1
setuptools: 36.0.1
Cython: 0.25.2
numpy: 1.13.0
scipy: 0.19.0
xarray: 0.8.2
IPython: 6.1.0
sphinx: None
patsy: 0.4.1
dateutil: 2.6.0
pytz: 2017.2
blosc: None
bottleneck: None
tables: 3.3.0
numexpr: 2.6.1
feather: None
matplotlib: 2.0.0
openpyxl: None
xlrd: 1.0.0
xlwt: None
xlsxwriter: None
lxml: None
bs4: 4.4.1
html5lib: 0.9999999
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.9.5
s3fs: 0.0.7
pandas_gbq: None
pandas_datareader: 0.2.1
The text was updated successfully, but these errors were encountered: