Applying a Method to Values in a Column

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)

Row function

def function(row):
		info1 = row['column1']
		info2 = row['column2']

# Next you'll need to process 
# it according to the values

Theory

Data Sorting Techniques

– Several columns In this case, the categorization method takes a whole row from the DataFrame

Takeaway

Categorizing Data