I have csv which i read in a query from a windows folder.
files = glob.glob(r"LBT210*.csv")
dfs = [pd.read_csv(f, sep=";", engine='c') for f in files]
df2 = pd.concat(dfs,ignore_index=True)
However the output looks like:
columnA columnB columnC
1 1 0
2 0 A
NaN NaN 1
3 B D
...
How can I skip reading the rows, which contain a 'NaN' (none-value) in the columnB, so that i can save some memory and speed processing it? So I don't want to read the rows! I want to adjust:
dfs = [pd.read_csv(f, sep=";", engine='c') for f in files]
somehow