I have a Pandas Dataframe as below:
itm Date Amount 67 420 2012-09-30 00:00:00 65211 68 421 2012-09-09 00:00:00 29424 69
The below code worked for me.
import pandas df = pandas.read_csv('somefile.txt') df = df.fillna(0)