in the following code only the plot
is drawn but the head
is not printed why?
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv("file.csv")
df.set_index("id", inplace=True)
plt.plot(df)
plt.show() # this draws plof of entire df form csv
print(df.head(10)) # this does not print the first 10 rows of the dataframe