I have the following code in PyCharm
import pandas as pd import numpy as np import matplotlib as plt df = pd.read_csv(\"c:/temp/datafile.txt\", sep=\'\\t\')
PyCharm is not Python Shell which automatically prints all results. You have to use print() to display anything.
PyCharm
Python Shell
print()
print(df.head(10))