Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
Customer Segmentation Analysis
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.cluster import KMeans
import warnings
warnings.filterwarnings("ignore")
Reading data
df = pd.read_csv(r"C:\\Users\\aansh\\OneDrive\\Desktop\\Customer-Segmentation-Analysis-main\Mall_Customers.csv")
df.head()
df.shape
(200, 5)