Sep-15-2017, 01:21 PM
I have a file Test.csv as below
ColumnA
FM
NA
EC
When run code below, it shows nan, not 'NA'. how to fix it? Thanks
FM
nan
EC
ColumnA
FM
NA
EC
When run code below, it shows nan, not 'NA'. how to fix it? Thanks
FM
nan
EC
import pandas as pd df = pd.DataFrame(pd.read_csv('Test.csv')) for s in df['ColumnA']: print(s)