I am reading a csv into a dataframe using:
import pandas as pd
df = pd.read_csv('file.csv')
My csv has 800 rows of data, but my dataframe is reading in 805 rows. The last 5 rows are completely blank. Is there any way to remove these 5 empty rows?
dropna()for NaN datadf=pd.read_csv('file.csv', skipfooter=5)