How to replace every NaN in a column with different random values using pandas?
问题 I have been playing with pandas lately and I now I tried to replace NaN value inside a dataframe with different random value of normal distribution. Assuming I have this CSV file without header 0 0 343 1 483 2 101 3 NaN 4 NaN 5 NaN My expected result should be something like this 0 0 343 1 483 2 101 3 randomnumber1 4 randomnumber2 5 randomnumber3 But instead I got the following : 0 0 343 1 483 2 101 3 randomnumber1 4 randomnumber1 5 randomnumber1 # all NaN filled with same number My code so