📜  熊猫数据框 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:45.691000             🧑  作者: Mango

代码示例6
>>> data = np.array([(1, 2, 3), (4, 5, 6), (7, 8, 9)],
...                 dtype=[("a", "i4"), ("b", "i4"), ("c", "i4")])
>>> df3 = pd.DataFrame(data, columns=['c', 'a'])
...
>>> df3
   c  a
0  3  1
1  6  4
2  9  7