Lets say i have a dataframe that looks like this:
Col1
0 100,000,000
1 234,343,000
2 NaN
3 213,564,545
4 NaN
5 678,000
6 200
how can divide the non NaN values in Col1 with 1000 and have this desirable output:
Col1 Col2
0 100,000,000 100,000
1 234,343,000 234,343
2 NaN NaN
3 213,564,545 213,564
4 NaN NaN
5 678,000 678
6 200 0.2
I tried to do df['Col1'].div(1000) but it is not working because of the NaN values