I am converting column in csv with prices to diferent value(currency change) with Pandas. I get this error an i suspect it is due to length of the column which is 35000 rows.
data = pd.read_csv(r"products.csv")
df = pd.DataFrame(data, columns=["Price"])
df["Price"] = df["Price"].astype(int)
def divide_by_7_5(numbers):
return [number / 7.5 for number in numbers]
result = divide_by_7_5(df)
print(result)
Error----->. pandas.errors.IntCastingNaNError: Cannot convert non-finite values (NA or inf) to integer
I try to add:
low_memory=False
i didn't give positive result.