yandex
loader

please wait

  • Ayushi Jain Mar-07-2019 07:18:17 AM ( 2 months ago )

    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?

     
  • Vikrant Srivastava Mar-07-2019 07:20:41 AM ( 2 months ago )
    1. First check the shape of df using df.shape() to get some insights and make sure that it is not empty.

    2. 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.

  • Arminder Gill Mar-07-2019 07:22:54 AM ( 2 months ago )

    You can use something called Jupyter notebook in PyCharm, but I would not recommend it, because it does not feel handy and looks very odd. Jupyter Notebook in the browser is much more appealing.

    This is how Jupyter Notebook looks in PyCharm:

Please login

Similar Discussion

Recommended For You