return pandas series where value is true

后端 未结 0 1794
误落风尘
误落风尘 2021-02-03 23:32

Given this

import pandas as pd

data = pd.Series([True, True, False, False],
    index=[\'2019-01-01\',\'2019-01-02\',\'2019-01-03\',\'2019-01-04\'])

data[data]          


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