What's the difference between df.head() and df.head?

前端 未结 3 2000
半阙折子戏
半阙折子戏 2021-01-14 06:03

In Jupyter Notebook or terminal, both df.head and df.head() can return an output of the dataframe, with some minor differences. What\'s the fundamental difference between th

3条回答
  •  深忆病人
    2021-01-14 06:41

    head return a method head() return the top 5(default) row in your dataframe

    type(df.head)
    
    type(df.head())
    
    

提交回复
热议问题