how to collapse columns in pandas on null values?

后端 未结 6 1973
醉酒成梦
醉酒成梦 2021-01-14 02:18

Suppose I have the following dataframe:

pd.DataFrame({\'col1\':    [\"a\", \"a\", np.nan, np.nan, np.nan],
            \'override1\': [\"b\", np.nan, \"b\",          


        
6条回答
提交回复
热议问题