问题
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:
This appears to be a bug in Numpy that has been fixed recently. See https://github.com/numpy/numpy/issues/3962
来源:https://stackoverflow.com/questions/19722580/segfault-11-with-pandas-with-python-v2-7-6-rc1-on-mac-os-x-10-9