text_plain_output_1.png
import pandas as pd

import plotly.express as px

df = pd.read_csv('/kaggle/input/customer-segmentation-tutorial-in-python/Mall_Customers.csv')
df

df.isna().sum()

df_copy = df.copy()

df1 = df.drop(['CustomerID', 'Gender'], axis=1)
df1

fig = px.scatter(df, x='Annual Income (k$)', y='Spending Score (1-100)', color='Gender')
fig.show()