Learn practical skills, build real-world projects, and advance your career

Importing helper libraries

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import seaborn as sns
/usr/local/lib/python3.6/dist-packages/statsmodels/tools/_testing.py:19: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. import pandas.util.testing as tm

Importing data(Customer Complaints)

data = pd.read_csv("complaint.csv")
data.columns  # Checking the columns present in the data
Index(['Ticket #', 'Customer Complaint', 'Date', 'Date_month_year', 'Time',
       'Received Via', 'City', 'State', 'Zip code', 'Status',
       'Filing on Behalf of Someone'],
      dtype='object')