How to read parquet file with a condition using pyarrow in Python

前端 未结 2 1432
青春惊慌失措
青春惊慌失措 2021-02-09 03:48

I have created a parquet file with three columns (id, author, title) from database and want to read the parquet file with a condition (title=\'Learn Python\'). Below mentioned i

2条回答
  •  醉话见心
    2021-02-09 04:53

    Filters are now available read_table

    table = pq.read_table(
            df, filters=[("title", "in", {'Learn Python'}), 
                         ("year", ">=", 1950)]
        )
     
    

提交回复
热议问题