If I have this CSV :
"col1"
"hi"
it is read correctly using this code :
import pandas
df = pandas.read_csv("test.csv")
print(list(df["col1"]))
and prints :
['hi']
But if I change the string "hi" to "null" in the CSV , it fails !
It now prints
[nan]
My actual CSV is quite large and it so happened that it has this string "null" as a field value somewhere, and it cannot be read correctly it seems.
Any workarounds ?
[nan]?na_values