天天看點

pandas DataFrame學習(1)

關于pandas,前人之述備矣。然則this is my Blog!

dataframe是個資料表。可以通過字典建立(有一維、兩維)

輸出結果:

pandas DataFrame學習(1)

使用.Series和.index方法分别聲明。

pandas DataFrame學習(1)

輸出結果:

pandas DataFrame學習(1)

發現<code>jupyter</code>在上一個in裡面如果聲明的東西,在下一個In中也可以使用。它整體的一個檔案就是拆分成很多塊的程式。(終于明白<code>jupyter</code>的真正優點了)