How would we use object notation or dot notation to show the first 4 rows of a column in dataframe in pandas? Hope anyone can help please. Thanks
Asked
Active
Viewed 18 times
0
-
1`df['mycol'].head(4)` or `df.mycol.head(4)`? – Corralien May 25 '22 at 05:09
-
Please provide enough code so others can better understand or reproduce the problem. – Community May 25 '22 at 05:09