I want to fill column that doesn't have data with random values.
853 None
854 cheese empty
855 cheese other
856 yogurt empty
857 yogurt other
858 yogurt empty
859 yogurt other
860 butter empty
861 butter other
862 None
863 None
To want to get something like:
853 ASDFGHJAS
854 cheese empty
855 cheese other
856 yogurt empty
857 yogurt other
858 yogurt empty
859 yogurt other
860 butter empty
861 butter other
862 DFGHJRTYT
863 ERTYUIOIO
864 TYUIOPPWE
865 QWERTYUUI
866 CBNMTYUIO
I have tried to do something like:
df1 = df[['english_name']].fillna(''.join(choice(ascii_uppercase) for i in range(12)), axis=1)
853 ASDFGHJAS
854 cheese empty
855 cheese other
856 yogurt empty
857 yogurt other
858 yogurt empty
859 yogurt other
860 butter empty
861 butter other
862 ASDFGHJAS
863 ASDFGHJAS
864 ASDFGHJAS
865 ASDFGHJAS
866 ASDFGHJAS
The problem I get same value with each row, and I need unique random value on each row.