Skip to content

How to modify pandas column if value doesnt match requirements?

I am having trouble to format evenly my pandas df. It is filled with dates and prices for Stocks, but the prices are not formatted equally. From the start of 2021, the values have a comma separating the decimal (cents), but from 1998 to 2020, the prices are not seppareted with comma or dot. How can I add a co…