# Suppress warnings in Jupyter Notebooks
import warnings
warnings.filterwarnings("ignore")
# Load the library
import numpy as np
import pandas as pd
from pandas import plotting
import matplotlib.pyplot as plt
import plotly.offline as py
from plotly.offline import init_notebook_mode, iplot
import plotly.graph_objs as go
from plotly import tools
import plotly.figure_factory as ff
import seaborn as sns
plt.style.use('fivethirtyeight')
# Load the dataset
df = pd.read_csv('Mall_Customers.csv')
df.head()
# Let's rename few columns
df.rename(columns={'Annual Income (k$)':'Income',
'Spending Score (1-100)':'Spending_score'}, inplace=True)
dat = ff.create_table(df.head())
py.iplot(dat)