Pandas - Fill NaN using multiple values
问题 I have a column ( lets call it Column X) containing around 16000 NaN values. The column has two possible values, 1 or 0 ( so like a binary ) I want to fill the NaN values in column X, but i don't want to use a single value for ALL the NaN entries. say for instance that; i want to fill 50% of the NaN values with '1' and the other 50% with '0'. I have read the ' fillna() ' documentation but i have not found any such relevant information which could satisfy this functionality. I have literally