Skip to content
This repository was archived by the owner on May 5, 2026. It is now read-only.

ALPHAintelligenceBD/data-analysis-crm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

project-001:crm analysis

data cleaning

import pandas as pd

Load the Excel file

file_path = '' # Replace with your file path if youre running on a local ide, if online you upload your file at this point alphasports_data = pd.read_excel(file_path)

Setting the correct header and dropping unnecessary columns and rows

alphasports_data.columns = alphasports_data.iloc[1] # Set the second row as the header alphasports_data = alphasports_data.drop([0, 1]) # Drop the first two rows

Drop empty or irrelevant columns

alphasports_data = alphasports_data.dropna(axis=1, how='all')

Cleaning 'Slot Date' column

alphasports_data['Slot Date'] = alphasports_data['Slot Date'].apply(lambda x: x.strip() if isinstance(x, str) else x) alphasports_data['Slot Date'] = pd.to_datetime(alphasports_data['Slot Date'], errors='coerce')

Converting 'Slot Cost' to numeric

alphasports_data['Slot Cost'] = pd.to_numeric(alphasports_data['Slot Cost'], errors='coerce')

#analysis of time popularity, logic implementation

Analyzing the frequency of bookings for each time slot

slot_time_counts = alphasports_data['Slot time'].value_counts()

Sorting the results to see the most and least busy slots

sorted_slot_time_counts = slot_time_counts.sort_values(ascending=False)

About

Analysis of historical revenue and booking data for creating a slot priority chart and customer retention distribution graph

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors