Segfault 11 with pandas with Python v2.7.6 RC1 on

2020-03-31 01:57发布

In [1]: import json

In [2]: path = 'ch02/usagov_bitly_data2012-03-16-1331923249.txt'

In [3]: from pandas import DataFrame, Series;

In [4]: records = [json.loads(line) for line in open(path)]

In [5]: frame = DataFrame(records)

In [6]: frame['tz'][:10]
Segmentation fault: 11

Any access to frame results in a segfault. I have already upgraded to Python 2.7.6 RC1. Also happened in 2.7.5, also happens outside ipython. What am I to do?

1条回答
▲ chillily
2楼-- · 2020-03-31 02:56

This appears to be a bug in Numpy that has been fixed recently. See https://github.com/numpy/numpy/issues/3962

查看更多
登录 后发表回答