I have a CSV and would like to replace specific values in a Pandas column. It's working fine vor all values except for the likes of "5-6" and "2-3".
df["v_82"].replace({"5-6": "5", "2007": "13"}, inplace=True)
I copied these problematic values as text using "value_counts" and then pasted them into the replace function, so it can't be a typo.
df.v_82.value_counts ()
When I open up the original CSV in Excel, these problematic cell values are interpreted as dates, not as pure text volumes.
Thanks for helping out here.