pandas中的Series和DataFrame的區別與轉化

1.series數據類型 1. Series至關於數組numpy.array相似python Series 它是有索引,若是咱們未指定索引,則是以數字自動生成。web obj=Series([4,7,-5,3]) print obj #輸出結果以下: 0 4 1 7 2 -5 3 3 若是數據被存在一個python字典中,也能夠直接經過這個字典來建立Series.數組 sd
相關文章
相關標籤/搜索