Код: Выделить всё
df = pd.read_csv(f_name, dtype="string")
df = df[df.columns.dropna()]
df[cols_int] = df[cols_int].replace({"[\$]": "", "[,]": ""}, regex=True)
df[cols_int] = df[cols_int].astype(int)
Код: Выделить всё
ValueError: invalid literal for int() with base 10: '$499,000'
Подробнее здесь: https://stackoverflow.com/questions/674 ... ot-working
Мобильная версия