read HDF5 file to pandas DataFrame with conditions

后端 未结 2 1045
逝去的感伤
逝去的感伤 2020-12-16 18:09

I have a huge HDF5 file, I want to load part of it in a pandas DataFrame to perform some operations, but I am interested in filtering some rows.

I can explain better

2条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 18:53

    You can do this using pandas.read_hdf (here), with the optional parameter of where.
    For example: read_hdf('store_tl.h5', 'table', where = ['index>2'])

提交回复
热议问题