掘金社区

pandas使用手册Pinned highlighted

逍遥游 发表在掘金2 2015-08-09 00:16:57

掘金2
2536
1
0

有点旧,最新版请到官网下载 http://pandas.pydata.org/pandas-docs/stable/pandas.pdf
PANDAS_20120423.pdf (1.4 MB)

评论: 1
  • 看到新版本中有个很有用的功能,就是能方便做字节顺序转换了,可以把不同字节顺序机器上的数据轻松地导来导出而不受影响了。

    4.3 Byte-Ordering Issues

    Occasionally you may have to deal with data that were created on a machine with a different byte order than the one on which you are running Python. To deal with this issue you should convert the underlying NumPy array to the native system byte order before passing it to Series/DataFrame/Panel constructors using something similar to the following:

    >In [36]: x = np.array(list(range(10)), '>i4') # big endian
    >
    In [37]: newx = x.byteswap().newbyteorder() # force native byteorder
    In [38]: s = Series(newx)

    See the NumPy documentation on byte order for more details.

    2015-08-16 14:57:39

Looks like your connection to 掘金量化社区 - 量化交易者的策略交流学习社区 was lost, please wait while we try to reconnect.