简体   繁体   中英

Segfault 11 with pandas with Python v2.7.6 RC1 on Mac OS X 10.9

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM