{% extends 'base.html' %}
{% block title %}Customer Stats{% endblock %}
{% block main %}
{{ count }}+
Customers
are using EBMS for their electronics needs.
Get the details of a specific customer.
Top Customers
Here is a summary of ebms' top customers based on their total spendings
| Customer ID |
Customer Name |
Number of Orders |
Total Spending |
Average Spending per Order |
{% for row in top_rated %}
| {{ row['customerID'] }} |
{{ row['name'] }} |
{{ row['total_orders'] }} |
{{ row['total_spent'] }} |
{{ row['avg_spent'] }} |
{% endfor %}
Inactive Customers
Here is a summary of inactive customers who have placed the least number of orders
| Customer ID |
Customer Name |
Number of Orders |
Total Spending |
{% for row in inactive %}
| {{ row['customerID'] }} |
{{ row['name'] }} |
{{ row['total_orders'] }} |
{{ row['total_spent'] }} |
{% endfor %}
Customer Activity and Demographics
Here is a detailed summary of demographics of the customer activity on ebms
| Country |
State |
Number of Customers |
Average Spending per Order |
Total Spending |
{% for row in demographics %}
{% if row['country'] != None and row['state'] != None %}
| {{ row['country'] }} |
{{ row['state'] }} |
{{ row['customer_count'] }} |
{{ row['avg_spent'] }} |
{{ row['total_spent'] }} |
{% endif %}
{% endfor %}
| Country |
Number of Customers |
Average Spending per Order |
Total Spending |
{% for row in demographics %}
{% if row['country'] != None and row['state'] == None %}
| {{ row['country'] }} |
{{ row['customer_count'] }} |
{{ row['avg_spent'] }} |
{{ row['total_spent'] }} |
{% endif %}
{% endfor %}
| Total Number of Customers |
Average Spending per Order |
Total Global Spending |
{% for row in demographics %}
{% if row['country'] == None and row['state'] == None %}
| {{ row['customer_count'] }} |
{{ row['avg_spent'] }} |
{{ row['total_spent'] }} |
{% endif %}
{% endfor %}
{% endblock %}