Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/302.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 我可以过滤拼花地板桌子吗?_Python_Parquet - Fatal编程技术网

Python 我可以过滤拼花地板桌子吗?

Python 我可以过滤拼花地板桌子吗?,python,parquet,Python,Parquet,我刚刚开始研究拼花地板文件,因为我的一些数据是以这种格式提供的。我以前没有真正玩过,所以我的问题是 我像这样打开我的拼花文件: import pyarrow.parquet as pq table1 = pq.read_table('mydatafile.parquet') 这个文件由10列组成。现在是否可以直接从中筛选出column3等值为1的所有行 我是说,我可以: df = table1.to_pandas() df = df[df["column3"] != 1]

我刚刚开始研究拼花地板文件,因为我的一些数据是以这种格式提供的。我以前没有真正玩过,所以我的问题是

我像这样打开我的拼花文件:

import pyarrow.parquet as pq

table1 = pq.read_table('mydatafile.parquet')
这个文件由10列组成。现在是否可以直接从中筛选出column3等值为1的所有行

我是说,我可以:

df = table1.to_pandas()
df = df[df["column3"] != 1] 

但是这可以在不首先转换为熊猫数据帧的情况下以本机方式完成吗?

您可以从

资料来源:

import pyarrow.parquet as pq

table1 = pq.read_table('mydatafile.parquet', filters = [('column3',  '!=' , 1)])