-1
import pandas as pd
arq = pd.read_csv("arquivo.csv", sep=";")
I want to use values in the Valor
but is in object
. But when I use the code arq["Valor"] = arq["Valor"].astype(int)
error appears:
Valueerror: invalid literal for int() with base 10: '54.00'
Arq["Value"] = Arq["Value"]. astype(int) error appears: Valueerror: invalid literal for int() with base 10: '54.00' But when I change: Arq["Value"] = Arq["Value"]. astype(float) appears the following error: could not Convert string to float: ' 14.170.00'
– WEDJA