I want to access the top 6 items in a pandas dataframe.
I am doing this by using .head(n=6). This works fine and will show me the first 6 values. my problem is that it also shows the type of data that the data is. In this case I have my 6 values and at the bottom of my values I see : Name: Column 7, dtype: int64.
When I do:
Print(df_column_7.head(n=6)
I get 6 values and an additional datatype line.
I am struggling to find a way to remove the this additional data type information provided by .head().
I want to get rid of this data type information as I will be adding the .head(n=6) into a Django model. And the datatype info will mess up the model entry.