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
Traceback (most recent call last):
File "/home/developer/.config/JetBrains/PyCharm2020.2/scratches/scratch_4.py", line 10, in <module>
print(grouped.all())
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/groupby.py", line 1424, in all
return self._bool_agg("all", skipna)
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/groupby.py", line 1375, in _bool_agg
return self._get_cythonized_result(
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/groupby.py", line 2631, in _get_cythonized_result
raise TypeError(error_msg)
TypeError: boolean value of NA is ambiguous
Maybe using mask like in print(df.all(axis=1))?
Expected Output
Should work like with np.nan and return
b
a
1 True
2 True
3 True
4 True
b
a
1 True
2 True
3 True
4 True
Output of pd.show_versions()
master
The text was updated successfully, but these errors were encountered:
Traceback (most recent call last):
File "/home/developer/.config/JetBrains/PyCharm2020.2/scratches/scratch_4.py", line 10, in <module>
print(grouped.mean())
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/groupby.py", line 1490, in mean
return self._cython_agg_general(
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/generic.py", line 1021, in _cython_agg_general
agg_mgr = self._cython_agg_blocks(
File "/home/developer/PycharmProjects/pandas/pandas/core/groupby/generic.py", line 1123, in _cython_agg_blocks
raise DataError("No numeric types to aggregate")
pandas.core.base.DataError: No numeric types to aggregate
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
Both raise a
TypeError
Traceback:
Maybe using mask like in
print(df.all(axis=1))
?Expected Output
Should work like with
np.nan
and returnOutput of
pd.show_versions()
The text was updated successfully, but these errors were encountered: