Dataframe head not shown in PyCharm
<p>I have the following code in PyCharm</p>

<pre><code>import pandas as pd

import numpy as np

import matplotlib as plt

df = pd.read_csv("c:/temp/datafile.txt", sep='\t')

df.head(10)
</code></pre>

<p>I get the following output:</p>

<pre><code>Process finished with exit code 0
</code></pre>

<p>I am supposed to get the first ten rows of my datafile, but these do not appear in <code>PyCharm</code>.</p>

<p>I checked the Project interpreter and all settings seem to be alright there. The right packages are installed (numpy, pandas, matplotlib) under the right Python version. </p>

<p>What am I doing wrong? Thanks.</p>

<p><code>PyCharm</code> is not <code>Python Shell</code> which automatically prints all results. You have to use <code>print()</code> to display anything.</p>

<pre><code>print(df.head(10))
</code></pre>

python pandas dataframe pycharm