Karthikeyan Singaravelan <[email protected]> added the comment:
Copying my GitHub comment here :
If I have only D or no D then there is no segfault. It occurs when I have
either A, D or B, D, or C, D.
**Leaving out column D**
```python
from pandas import DataFrame
import pandas as pd
df = DataFrame({'A': [1, 2, 3],
'B': [1., 2., 3.],
'C': ['foo', 'bar', 'baz'],
#'D': pd.date_range('20130101', periods=3)
})
print(df.agg('sum'))
```
**output**
```
A 6
B 6
C foobarbaz
dtype: object
```
**Only with Column D**
```python
from pandas import DataFrame
import pandas as pd
df = DataFrame({'D': pd.date_range('20130101', periods=3)})
print(df.agg('sum'))
```
**output**
```
Series([], dtype: float64)
```
Thanks
----------
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue34688>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com