Unique column values and their quantity

data['column'].value_counts()

Arithmetic operations with columns

# Note: Columns must have a numeric type
data['column1'] = data['column2'] + data['column3']
data['column1'] = data['column2'] - data['column3']
data['column1'] = data['column2'] * data['column3']
data['column1'] = data['column2'] / data['column3']

The sum of the values, the minimum, the maximum, the mean, and the median in the column

# It's used for numeric columns
data['column'].sum()
data['column'].min()
data['column'].max()
data['column'].mean()
data['column'].median()
data['column'].count() # You can also calculate the number of values in the column

Applying several operations to a column when grouping

data.groupby('column1').agg({'column2': ['count', sum'], 'column3': ['min', 'max']})

Theory

Traffic sources are channels through which visitors reach a website

Percentage of return customers is a metric used for evaluating an online store’s traffic resources. It’s the ratio of visitors who make at least two purchases versus the number of visitors who make only one

Website conversion is a metric for evaluating traffic sources that is measured in two different ways: 1. The percentage of website visitors who perform target actions 2. The percentage of target actions performed on the website 3. The percentage of target actions on the website

А web analytics system is a system that automatically collects information from the counters on a website, monitors user behavior and processes the results