PythonForDataAnalysis
PythonForDataAnalysis copied to clipboard
DataFrame:資料缺欄,錯誤跑不動
pop = {'台北':{2000:0.8, 2001:2.4, 2002:2.9},
'高雄':{2000:1.5, 2001:1.7, 2002:3.6}
frame1 = pd.DataFrame(pop)
frame1
File "
frame1.T
NameError Traceback (most recent call last)
NameError: name 'frame1' is not defined
