Suppose I have this csv data:
id_column col_name2 col_name3
id1 value1 value1
id2 value2
id3 value2
id4 value3
#User selects number 3 (related to col_name3), I do
df = pandas.read_csv("file.csv")
col=df.columns[3]
df_col = pandas.read_csv("file.csv", usecols=[col])
#print(df_col.isnull())
#maybe iterate through df_col values to catch NULL values
#print only id2 and id4
How to display just id2 and id4, related to the NULL cells on col_name3?
I let the user to select the column, and if for instance, the user selected col_name3 like above, I want to automatically display the id(s) in id_column where NULL values exist in selected col_name3.
So, if the user choose col_name3, ONLY id2 an id4 should be displayed. If the user chose col_name2, ONLY id3 should be displayed.