Python - List comprehension with if-else on column / list containing NaNs

后端 未结 0 639
小鲜肉
小鲜肉 2021-02-05 07:59

There is a df column that has strings (with extra spaces) and NaNs.
I want to remove the extra spaces from the strings and keep the NaNs where they are.
I used the f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题