data['column'].apply(method)
# If you need to apply a method to rows,
# then use the axis=1 parameter
data['column'].apply(method, axis=1)
def function(row):
info1 = row['column1']
info2 = row['column2']
# Next you'll need to process
# it according to the values
Filtering the dictionary of categories A number is given to each category name in the dictionary, which are used in the main DataFrame
Categorization is combining data into categories and you can arrange data using the following options:
One column If this is the case, the categorization method will only take one value-one from the column in question
– Several columns In this case, the categorization method takes a whole row from the DataFrame