{% 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

{% for row in top_rated %} {% endfor %}
Customer ID Customer Name Number of Orders Total Spending Average Spending per Order
{{ row['customerID'] }} {{ row['name'] }} {{ row['total_orders'] }} {{ row['total_spent'] }} {{ row['avg_spent'] }}


Inactive Customers

Here is a summary of inactive customers who have placed the least number of orders

{% for row in inactive %} {% endfor %}
Customer ID Customer Name Number of Orders Total Spending
{{ row['customerID'] }} {{ row['name'] }} {{ row['total_orders'] }} {{ row['total_spent'] }}


Customer Activity and Demographics

Here is a detailed summary of demographics of the customer activity on ebms

{% for row in demographics %} {% if row['country'] != None and row['state'] != None %} {% endif %} {% endfor %}
Country State Number of Customers Average Spending per Order Total Spending
{{ row['country'] }} {{ row['state'] }} {{ row['customer_count'] }} {{ row['avg_spent'] }} {{ row['total_spent'] }}
{% for row in demographics %} {% if row['country'] != None and row['state'] == None %} {% endif %} {% endfor %}
Country Number of Customers Average Spending per Order Total Spending
{{ row['country'] }} {{ row['customer_count'] }} {{ row['avg_spent'] }} {{ row['total_spent'] }}
{% for row in demographics %} {% if row['country'] == None and row['state'] == None %} {% endif %} {% endfor %}
Total Number of Customers Average Spending per Order Total Global Spending
{{ row['customer_count'] }} {{ row['avg_spent'] }} {{ row['total_spent'] }}
{% endblock %}