pandas dataframe - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: pandas dataframe (/thread-5038.html) |
pandas dataframe - ian - Sep-15-2017 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 import pandas as pd df = pd.DataFrame(pd.read_csv('Test.csv')) for s in df['ColumnA']: print(s) RE: pandas dataframe - ichabod801 - Sep-15-2017 pd.read_csv('Test.csv', na_filter = False) |