Why doesn't this None filtering work with pandas?

前端 未结 0 796
被撕碎了的回忆
被撕碎了的回忆 2020-11-30 17:47

Let\'s say we have:

import pandas as pd
df = pd.DataFrame([[1, 2], [4, None], [None, 7]], dtype=object, columns=[\'a\', \'b\'])
print(df[\'a\'])
# 0       1
#         


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