How to make a dataframe show in pycharm?
14,257
Solution 1
First check the shape of df using
df.shape()
to get some insights and make sure that it is not empty.Use Debugger and place a debug point at
print(df)
.
There is evaluator in debugger and you will be shown a view of df
if you evaluate df.
Solution 2
When you read csv you need to check you have read successfully. Does the file located in the same folder? Does it not empty?
![Mercury](https://i.stack.imgur.com/Q5fZo.jpg?s=256&g=1)
Author by
Mercury
Updated on June 28, 2022Comments
-
Mercury almost 2 years
I have the following code in PyCharm.
import pandas as pd df = pd.read_csv("test.csv") print(df) print(df.head())
But nothing shows up, and I get:
Process finished with exit code 0
How can I have data showing in PyCharm like in RStudio?