Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/278.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_Pandas - Fatal编程技术网

Python将在一列中切片多个行值

Python将在一列中切片多个行值,python,pandas,Python,Pandas,正在尝试筛选列中的'chen3'、'abc1'、'wei3' tsg.loc[tsg['Trader']=“chen3”、'abc1'、'wei3'] 请告知tsg.loc[~tsg['Trader'].isin(['chen3','abc1','wei3'])]欢迎来到stackoverflow,尝试显示更多代码和您正在尝试的操作。如果您试图在Python中拆分字符串,请查看tsg.loc[~tsg['Trader'].isin(['chen3','abc1','wei3'])]欢迎使用sta

正在尝试筛选列中的'chen3'、'abc1'、'wei3' tsg.loc[tsg['Trader']=“chen3”、'abc1'、'wei3']


请告知

tsg.loc[~tsg['Trader'].isin(['chen3','abc1','wei3'])]
欢迎来到stackoverflow,尝试显示更多代码和您正在尝试的操作。如果您试图在Python中拆分字符串,请查看
tsg.loc[~tsg['Trader'].isin(['chen3','abc1','wei3'])]
欢迎使用stackoverflow,尝试显示更多代码和您正在尝试执行的操作。如果您试图在Python中拆分字符串,请查看
tsg[(tsg.Trader != "chen3") & (tsg.Trader != "abc") & (tsg.Trader != "wei3")]