Dataframe head not shown in PyCharm
For printing all data
print(df)
By Default it will print top 5 records for head.
print(df.head())
If you need 10 rows then you can write this way
print(df.head(10))
PyCharm
is not Python Shell
which automatically prints all results.
In PyCharm
you have to use print()
to display anything.
print(df.head(10))
The same is when you run script in other IDE
or editor
or directly python script.py