Например, для этого фрейма данных
df = pd.DataFrame({'Age':['12',np.nan,'32','21','55'],
'Height':["5'7","5'8","5'5",np.nan,"5'10"],
'Weight':[np.nan,'160','165','155','170'],
'Gender':['M','M',np.nan,'F',np.nan],
'Salary':[2900,6550000,7840000,6550000,8950000]})
Я хочу вывести как:
Age Height Weight Gender Salary
0 12 5'7 NaN M 2.9K
1 NaN 5'8 160 M 6.55M
2 32 5'5 165 NaN 7.84M
3 21 NaN 155 F 6.55M
4 55 5'10 170 NaN 8.95M