Я пытаюсь удалить определенные значения с помощью этого кода, однако pandas не дает мне, вместо этого выводит
ValueError: Unable to coerce to Series, length must be 10: given 2
Вот мой код:
import pandas as pd
df = pd.read_csv("/Volumes/SSD/IT/DataSets/Automobile_data.csv")
print(df.shape)
columns_df = ['index', 'company', 'body-style', 'wheel-base', 'length', 'engine-type',
'num-of-cylinders', 'horsepower', 'average-mileage', 'price']
prohibited_symbols = ['?','Nan''n.a']
df = df[df[columns_df] != prohibited_symbols]
print(df)