python pandas dataframe head() displays nothing

前端 未结 2 2162
时光说笑
时光说笑 2021-02-19 00:00

I am new to using pandas and I just don\'t know what to do with this :

I am using python. I have (properly) installed anaconda. In my file I simply create a DataFrame (f

2条回答
  •  萌比男神i
    2021-02-19 00:37

    You have to use:

    print(dataframe.head())
    print(dataframe['km'])
    print(dataframe[3:6])
    

    Without the print statement python is just selecting the data but not doing anything with it.

提交回复
热议问题