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\')
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))