2017-08-28 242 views
-2

圖像數據是關於數據如何字典打印像CSV數據在python字典到大熊貓數據幀:

enter image description here

+2

歡迎來到StackOverflow。請花時間閱讀這篇文章[如何提供一個偉大的熊貓示例](http://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples)以及如何提供[最小,完整和可驗證的示例](http://stackoverflow.com/help/mcve)並相應地修改您的問題。 [如何提出一個好問題](http://stackoverflow.com/help/how-to-ask)上的這些技巧也可能有用。 – jezrael

+4

[不要發佈代碼圖片(或鏈接到他們)](http://meta.stackoverflow.com/questions/285551/why-may-i-not-upload-images-of-code-on-so - 當問一個問題) – jezrael

+0

你的問題是什麼? –

回答

0

最後我得到解決,因爲習題的指數= [0] ...--- - > df = pd.DataFrame(doc, columns = [ "c_nm","sector","nm12", "nm13", "nm14","nm15", "nm16", "nm17","re12", "re13", "re14","re15", "re16", "re17","rw12", "rw13", "rw14","rw15", "rw16", "rw17","om12", "om13", "om14","om15", "om16", "om17","rg12", "rg13", "rg14","rg15", "rg16", "rg17","np12", "np13", "np14","np15", "np16", "np17"],index=[0]) print(df)