Relative Content

Tag Archive for pythonpandasdataframemappingapply

Error when applying function to a column in data frame

I had a label column from a pandas dataframe that had so many variance. I want to narrow it down by putting some of the label to another label I chose.
The data is supposed to be like this (both column are in dtype string):