0% found this document useful (0 votes)
106 views

Comcast Telecom Consumer - Complaints

DESCRIPTION Comcast is an American global telecommunication company. The firm has been providing terrible customer service. They continue to fall short despite repeated promises to improve. Only last month (October 2016) the authority fined them a $2.3 million, after receiving over 1000 consumer complaints. The existing database will serve as a repository of public customer complaints filed against Comcast. It will help to pin down what is wrong with Comcast's customer service.

Uploaded by

BiplavKant
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
106 views

Comcast Telecom Consumer - Complaints

DESCRIPTION Comcast is an American global telecommunication company. The firm has been providing terrible customer service. They continue to fall short despite repeated promises to improve. Only last month (October 2016) the authority fined them a $2.3 million, after receiving over 1000 consumer complaints. The existing database will serve as a repository of public customer complaints filed against Comcast. It will help to pin down what is wrong with Comcast's customer service.

Uploaded by

BiplavKant
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Comcast telecommunication Complaints Project

In [1]:
#Importing Libraries

import numpy as np

import pandas as pd

import matplotlib.pyplot as plt

import seaborn as sns

%matplotlib inline

Loading Dataset

In [2]:
comcast=pd.read_csv("D:\Data Science\python\project\comcast_telecom_complaints_data\Comcast_telecom_complaints_data.csv")

In [3]:
comcast

Out[3]: Ticket # Customer Complaint Date Date_month_year Time Received Via City State Zip code Status Filing on Behalf of Someone

0 250635 Comcast Cable Internet Speeds 22-04-15 22-Apr-15 3:53:50 PM Customer Care Call Abingdon Maryland 21009 Closed No

1 223441 Payment disappear - service got disconnected 04-08-15 04-Aug-15 10:22:56 AM Internet Acworth Georgia 30102 Closed No

2 242732 Speed and Service 18-04-15 18-Apr-15 9:55:47 AM Internet Acworth Georgia 30101 Closed Yes

3 277946 Comcast Imposed a New Usage Cap of 300GB that ... 05-07-15 05-Jul-15 11:59:35 AM Internet Acworth Georgia 30101 Open Yes

4 307175 Comcast not working and no service to boot 26-05-15 26-May-15 1:25:26 PM Internet Acworth Georgia 30101 Solved No

... ... ... ... ... ... ... ... ... ... ... ...

2219 213550 Service Availability 04-02-15 04-Feb-15 9:13:18 AM Customer Care Call Youngstown Florida 32466 Closed No

2220 318775 Comcast Monthly Billing for Returned Modem 06-02-15 06-Feb-15 1:24:39 PM Customer Care Call Ypsilanti Michigan 48197 Solved No

2221 331188 complaint about comcast 06-09-15 06-Sep-15 5:28:41 PM Internet Ypsilanti Michigan 48197 Solved No

2222 360489 Extremely unsatisfied Comcast customer 23-06-15 23-Jun-15 11:13:30 PM Customer Care Call Ypsilanti Michigan 48197 Solved No

2223 363614 Comcast, Ypsilanti MI Internet Speed 24-06-15 24-Jun-15 10:28:33 PM Customer Care Call Ypsilanti Michigan 48198 Open Yes

2224 rows × 11 columns

In [4]:
comcast.head()

Out[4]: Ticket # Customer Complaint Date Date_month_year Time Received Via City State Zip code Status Filing on Behalf of Someone

0 250635 Comcast Cable Internet Speeds 22-04-15 22-Apr-15 3:53:50 PM Customer Care Call Abingdon Maryland 21009 Closed No

1 223441 Payment disappear - service got disconnected 04-08-15 04-Aug-15 10:22:56 AM Internet Acworth Georgia 30102 Closed No

2 242732 Speed and Service 18-04-15 18-Apr-15 9:55:47 AM Internet Acworth Georgia 30101 Closed Yes

3 277946 Comcast Imposed a New Usage Cap of 300GB that ... 05-07-15 05-Jul-15 11:59:35 AM Internet Acworth Georgia 30101 Open Yes

4 307175 Comcast not working and no service to boot 26-05-15 26-May-15 1:25:26 PM Internet Acworth Georgia 30101 Solved No

In [5]:
comcast.isnull().sum()

Out[5]: Ticket # 0

Customer Complaint 0

Date 0

Date_month_year 0

Time 0

Received Via 0

City 0

State 0

Zip code 0

Status 0

Filing on Behalf of Someone 0

dtype: int64
There are no any NaN value present in Data set

In [6]:
comcast.describe(include="all")

Out[6]: Ticket # Customer Complaint Date Date_month_year Time Received Via City State Zip code Status Filing on Behalf of Someone

count 2224 2224 2224 2224 2224 2224 2224 2224 2224.000000 2224 2224

unique 2224 1841 91 91 2190 2 928 43 NaN 4 2

top 371490 Comcast 24-06-15 24-Jun-15 4:38:27 PM Customer Care Call Atlanta Georgia NaN Solved No

freq 1 83 218 218 2 1119 63 288 NaN 973 2021

mean NaN NaN NaN NaN NaN NaN NaN NaN 47994.393435 NaN NaN

std NaN NaN NaN NaN NaN NaN NaN NaN 28885.279427 NaN NaN

min NaN NaN NaN NaN NaN NaN NaN NaN 1075.000000 NaN NaN

25% NaN NaN NaN NaN NaN NaN NaN NaN 30056.500000 NaN NaN

50% NaN NaN NaN NaN NaN NaN NaN NaN 37211.000000 NaN NaN

75% NaN NaN NaN NaN NaN NaN NaN NaN 77058.750000 NaN NaN

max NaN NaN NaN NaN NaN NaN NaN NaN 99223.000000 NaN NaN

In [7]:
comcast.shape

Out[7]: (2224, 11)

In [8]:
comcast=comcast.drop(["Ticket #","Time"],axis=1)

In [9]:
comcast.head(10)

Out[9]: Customer Complaint Date Date_month_year Received Via City State Zip code Status Filing on Behalf of Someone

0 Comcast Cable Internet Speeds 22-04-15 22-Apr-15 Customer Care Call Abingdon Maryland 21009 Closed No

1 Payment disappear - service got disconnected 04-08-15 04-Aug-15 Internet Acworth Georgia 30102 Closed No

2 Speed and Service 18-04-15 18-Apr-15 Internet Acworth Georgia 30101 Closed Yes

3 Comcast Imposed a New Usage Cap of 300GB that ... 05-07-15 05-Jul-15 Internet Acworth Georgia 30101 Open Yes

4 Comcast not working and no service to boot 26-05-15 26-May-15 Internet Acworth Georgia 30101 Solved No

5 ISP Charging for arbitrary data limits with ov... 06-12-15 06-Dec-15 Internet Acworth Georgia 30101 Solved No

6 Throttling service and unreasonable data caps 24-06-15 24-Jun-15 Customer Care Call Acworth Georgia 30101 Pending No

7 Comcast refuses to help troubleshoot and corre... 23-06-15 23-Jun-15 Internet Adrian Michigan 49221 Solved No

8 Comcast extended outages 06-01-15 06-Jan-15 Customer Care Call Alameda California 94502 Closed No

9 Comcast Raising Prices and Not Being Available... 28-06-15 28-Jun-15 Customer Care Call Alameda California 94501 Open Yes

Task-1 Provide the trend chart for the number of complaints at monthly and daily granularity levels.

In [10]:
#pandas to datetime() method helps to connvert string Date time into python date time object

comcast["Date_month_year"]=comcast["Date_month_year"].apply(pd.to_datetime)

In [11]:
comcast

Out[11]: Customer Complaint Date Date_month_year Received Via City State Zip code Status Filing on Behalf of Someone

0 Comcast Cable Internet Speeds 22-04-15 2015-04-22 Customer Care Call Abingdon Maryland 21009 Closed No

1 Payment disappear - service got disconnected 04-08-15 2015-08-04 Internet Acworth Georgia 30102 Closed No

2 Speed and Service 18-04-15 2015-04-18 Internet Acworth Georgia 30101 Closed Yes

3 Comcast Imposed a New Usage Cap of 300GB that ... 05-07-15 2015-07-05 Internet Acworth Georgia 30101 Open Yes

4 Comcast not working and no service to boot 26-05-15 2015-05-26 Internet Acworth Georgia 30101 Solved No

... ... ... ... ... ... ... ... ... ...

2219 Service Availability 04-02-15 2015-02-04 Customer Care Call Youngstown Florida 32466 Closed No

2220 Comcast Monthly Billing for Returned Modem 06-02-15 2015-02-06 Customer Care Call Ypsilanti Michigan 48197 Solved No

2221 complaint about comcast 06-09-15 2015-09-06 Internet Ypsilanti Michigan 48197 Solved No

2222 Extremely unsatisfied Comcast customer 23-06-15 2015-06-23 Customer Care Call Ypsilanti Michigan 48197 Solved No

2223 Comcast, Ypsilanti MI Internet Speed 24-06-15 2015-06-24 Customer Care Call Ypsilanti Michigan 48198 Open Yes

2224 rows × 9 columns

In [12]:
#setting 'Date_month_year' as index

comcast=comcast.set_index('Date_month_year')

In [13]:
comcast

Out[13]: Customer Complaint Date Received Via City State Zip code Status Filing on Behalf of Someone

Date_month_year

2015-04-22 Comcast Cable Internet Speeds 22-04-15 Customer Care Call Abingdon Maryland 21009 Closed No

2015-08-04 Payment disappear - service got disconnected 04-08-15 Internet Acworth Georgia 30102 Closed No

2015-04-18 Speed and Service 18-04-15 Internet Acworth Georgia 30101 Closed Yes

2015-07-05 Comcast Imposed a New Usage Cap of 300GB that ... 05-07-15 Internet Acworth Georgia 30101 Open Yes

2015-05-26 Comcast not working and no service to boot 26-05-15 Internet Acworth Georgia 30101 Solved No

... ... ... ... ... ... ... ... ...

2015-02-04 Service Availability 04-02-15 Customer Care Call Youngstown Florida 32466 Closed No

2015-02-06 Comcast Monthly Billing for Returned Modem 06-02-15 Customer Care Call Ypsilanti Michigan 48197 Solved No

2015-09-06 complaint about comcast 06-09-15 Internet Ypsilanti Michigan 48197 Solved No

2015-06-23 Extremely unsatisfied Comcast customer 23-06-15 Customer Care Call Ypsilanti Michigan 48197 Solved No

2015-06-24 Comcast, Ypsilanti MI Internet Speed 24-06-15 Customer Care Call Ypsilanti Michigan 48198 Open Yes

2224 rows × 8 columns

plotting monthly chart

In [17]:
#dataframe.groupby() function is splitting the date into groups according to frequency

months=comcast.groupby(pd.Grouper(freq="M")).size().plot()

plt.xlabel("MONTHS")

plt.ylabel("FREQUENCY")

plt.title("MONTHLY TREND CHART")

Out[17]: Text(0.5, 1.0, 'MONTHLY TREND CHART')

INSIGHTS:-From the above trend chart,we can clearly see that compliants for the month of June 2015 are maximun

In [19]:
#value_counts function is getting a Series containing counts of unique values for Date column.

comcast["Date"].value_counts()[:8]

Out[19]: 24-06-15 218

23-06-15 190

25-06-15 98

26-06-15 55

30-06-15 53

29-06-15 51

18-06-15 47

06-12-15 43

Name: Date, dtype: int64


plotting daily chart

In [21]:
comcast=comcast.sort_values(by="Date")

In [22]:
comcast

Out[22]: Customer Complaint Date Received Via City State Zip code Status Filing on Behalf of Someone

Date_month_year

2015-01-04 Fraudulent claims reported to collections agency 04-01-15 Customer Care Call Atlanta Georgia 30312 Closed No

2015-01-04 Comcast refusal of service 04-01-15 Customer Care Call Wayne Pennsylvania 19087 Closed No

2015-01-04 Comcast Cable 04-01-15 Internet Franklin Tennessee 37067 Closed No

2015-01-04 Data Overages 04-01-15 Internet Savannah Georgia 31406 Closed No

2015-01-04 Comcast 04-01-15 Internet North Huntingdon Pennsylvania 15642 Closed No

... ... ... ... ... ... ... ... ...

2015-05-31 Comcast 31-05-15 Customer Care Call Beaverton Oregon 97006 Pending No

2015-05-31 Comcast of East Windsor NJ Complaint 31-05-15 Internet East Windsor New Jersey 8520 Pending No

2015-05-31 n/a (b) (6) 31-05-15 Internet Loganville Georgia 30052 Pending No

2015-05-31 Complaint against Comcast for incredibly bad s... 31-05-15 Customer Care Call Edgewood Washington 98372 Pending No

2015-05-31 Questionable internet slowdown 31-05-15 Customer Care Call Peabody Massachusetts 1960 Solved No

2224 rows × 8 columns

In [29]:
plt.figure(figsize=(6,6))

comcast["Date"].value_counts().plot()

plt.xlabel("DATE")

plt.ylabel("FREQUENCY")

plt.title('Daily Trend Chart')

plt.show()

Task-2 Provide a table with the frequency of complaint types.

In [31]:
comcast["Customer Complaint"].value_counts(dropna=False)[:9]

Out[31]: Comcast 83

Comcast Internet 18

Comcast Data Cap 17

comcast 13

Comcast Data Caps 11

Data Caps 11

Comcast Billing 11

Unfair Billing Practices 9

Comcast/Xfinity 8

Name: Customer Complaint, dtype: int64

In [38]:
comcast["Customer Complaint"].value_counts(dropna=False)[:9].plot.bar()

Out[38]: <AxesSubplot:>

Task 3-Which complaint types are maximum i.e., around internet, network issues, or across any other domains.

In [40]:
internet_issues1=comcast[comcast['Customer Complaint'].str.contains("networks")].count()

In [41]:
internet_issues1

Out[41]: Customer Complaint 0

Date 0

Received Via 0

City 0

State 0

Zip code 0

Status 0

Filing on Behalf of Someone 0

dtype: int64

In [44]:
internet_issues2=comcast[comcast["Customer Complaint"].str.contains("speed")].count()

In [45]:
internet_issues2

Out[45]: Customer Complaint 114

Date 114

Received Via 114

City 114

State 114

Zip code 114

Status 114

Filing on Behalf of Someone 114

dtype: int64

In [47]:
internet_issues3=comcast[comcast["Customer Complaint"].str.contains("data")].count()

In [48]:
internet_issues3

Out[48]: Customer Complaint 64

Date 64

Received Via 64

City 64

State 64

Zip code 64

Status 64

Filing on Behalf of Someone 64

dtype: int64

In [49]:
internet_issues4=comcast[comcast["Customer Complaint"].str.contains("internet")].count()

In [50]:
internet_issues4

Out[50]: Customer Complaint 195

Date 195

Received Via 195

City 195

State 195

Zip code 195

Status 195

Filing on Behalf of Someone 195

dtype: int64

In [51]:
billing_issues1=comcast[comcast['Customer Complaint'].str.contains("bill")].count()

In [53]:
billing_issues1

Out[53]: Customer Complaint 184

Date 184

Received Via 184

City 184

State 184

Zip code 184

Status 184

Filing on Behalf of Someone 184

dtype: int64

In [57]:
billing_issues2=comcast[comcast['Customer Complaint'].str.contains("billing")].count()

In [58]:
billing_issues2

Out[58]: Customer Complaint 126

Date 126

Received Via 126

City 126

State 126

Zip code 126

Status 126

Filing on Behalf of Someone 126

dtype: int64

In [59]:
billing_issues3=comcast[comcast["Customer Complaint"].str.contains('charges')].count()

In [60]:
billing_issues3

Out[60]: Customer Complaint 43

Date 43

Received Via 43

City 43

State 43

Zip code 43

Status 43

Filing on Behalf of Someone 43

dtype: int64

In [62]:
service_issues1=comcast[comcast["Customer Complaint"].str.contains("service")].count()

In [63]:
service_issues1

Out[63]: Customer Complaint 310

Date 310

Received Via 310

City 310

State 310

Zip code 310

Status 310

Filing on Behalf of Someone 310

dtype: int64

In [64]:
service_issues2=comcast[comcast["Customer Complaint"].str.contains("customer")].count()

In [65]:
service_issues2

Out[65]: Customer Complaint 50

Date 50

Received Via 50

City 50

State 50

Zip code 50

Status 50

Filing on Behalf of Someone 50

dtype: int64

In [66]:
total_internet_issues=internet_issues1+internet_issues2+internet_issues3+internet_issues4

In [67]:
total_internet_issues

Out[67]: Customer Complaint 373

Date 373

Received Via 373

City 373

State 373

Zip code 373

Status 373

Filing on Behalf of Someone 373

dtype: int64

In [68]:
total_billing_issues=billing_issues1+billing_issues2+billing_issues3

total_billing_issues

Out[68]: Customer Complaint 353

Date 353

Received Via 353

City 353

State 353

Zip code 353

Status 353

Filing on Behalf of Someone 353

dtype: int64

In [69]:
total_service_issues=service_issues1+service_issues2

total_service_issues

Out[69]: Customer Complaint 360

Date 360

Received Via 360

City 360

State 360

Zip code 360

Status 360

Filing on Behalf of Someone 360

dtype: int64

In [70]:
other_issues=2224-(total_internet_issues+total_billing_issues+total_service_issues)

other_issues

Out[70]: Customer Complaint 1138

Date 1138

Received Via 1138

City 1138

State 1138

Zip code 1138

Status 1138

Filing on Behalf of Someone 1138

dtype: int64
INSIGHTS:- From the above analysis we can see that the other issues are maximum.

task4=Create a new categorical variable with value as Open and Closed. Open & Pending is to be categorized as Open and Closed & Solved is to be categorized as Closed.

In [71]:
comcast.Status.unique()

Out[71]: array(['Closed', 'Open', 'Solved', 'Pending'], dtype=object)

In [72]:
comcast["newStatus"]=["Open" if Status=="Open" or Status=="Pending" else "Closed" for Status in comcast["Status"]]

In [73]:
comcast

Out[73]: Customer Complaint Date Received Via City State Zip code Status Filing on Behalf of Someone newStatus

Date_month_year

2015-01-04 Fraudulent claims reported to collections agency 04-01-15 Customer Care Call Atlanta Georgia 30312 Closed No Closed

2015-01-04 Comcast refusal of service 04-01-15 Customer Care Call Wayne Pennsylvania 19087 Closed No Closed

2015-01-04 Comcast Cable 04-01-15 Internet Franklin Tennessee 37067 Closed No Closed

2015-01-04 Data Overages 04-01-15 Internet Savannah Georgia 31406 Closed No Closed

2015-01-04 Comcast 04-01-15 Internet North Huntingdon Pennsylvania 15642 Closed No Closed

... ... ... ... ... ... ... ... ... ...

2015-05-31 Comcast 31-05-15 Customer Care Call Beaverton Oregon 97006 Pending No Open

2015-05-31 Comcast of East Windsor NJ Complaint 31-05-15 Internet East Windsor New Jersey 8520 Pending No Open

2015-05-31 n/a (b) (6) 31-05-15 Internet Loganville Georgia 30052 Pending No Open

2015-05-31 Complaint against Comcast for incredibly bad s... 31-05-15 Customer Care Call Edgewood Washington 98372 Pending No Open

2015-05-31 Questionable internet slowdown 31-05-15 Customer Care Call Peabody Massachusetts 1960 Solved No Closed

2224 rows × 9 columns

task5=Which state has the maximum complaints

In [84]:
comcast.groupby(["State"]).size().sort_values(ascending=False)

Out[84]: State
Georgia 288

Florida 240

California 220

Illinois 164

Tennessee 143

Pennsylvania 130

Michigan 115

Washington 98

Colorado 80

Maryland 78

New Jersey 75

Texas 71

Massachusetts 61

Virginia 60

Indiana 59

Oregon 49

Mississippi 39

Minnesota 33

Alabama 26

Utah 22

Arizona 20

South Carolina 18

District Of Columbia 16

New Mexico 15

Louisiana 13

Connecticut 12

New Hampshire 12

Delaware 12

West Virginia 11

Kentucky 7

Arkansas 6

New York 6

Maine 5

Missouri 4

North Carolina 3

Vermont 3

Ohio 3

Kansas 2

District of Columbia 1

Rhode Island 1

Iowa 1

Nevada 1

Montana 1

dtype: int64
INSIGHTS=From this above table ,we can clearly see that Georgia
has maximun complaints

task6=Provide state waise status of complinats in a stacked bar chart

In [98]:
Status_complaints=comcast.groupby(["State","newStatus"]).size().unstack()

In [100…
Status_complaints

Out[100… newStatus Closed Open

State

Alabama 17.0 9.0

Arizona 14.0 6.0

Arkansas 6.0 NaN

California 159.0 61.0

Colorado 58.0 22.0

Connecticut 9.0 3.0

Delaware 8.0 4.0

District Of Columbia 14.0 2.0

District of Columbia 1.0 NaN

Florida 201.0 39.0

Georgia 208.0 80.0

Illinois 135.0 29.0

Indiana 50.0 9.0

Iowa 1.0 NaN

Kansas 1.0 1.0

Kentucky 4.0 3.0

Louisiana 12.0 1.0

Maine 3.0 2.0

Maryland 63.0 15.0

Massachusetts 50.0 11.0

Michigan 92.0 23.0

Minnesota 29.0 4.0

Mississippi 23.0 16.0

Missouri 3.0 1.0

Montana 1.0 NaN

Nevada 1.0 NaN

New Hampshire 8.0 4.0

New Jersey 56.0 19.0

New Mexico 11.0 4.0

New York 6.0 NaN

North Carolina 3.0 NaN

Ohio 3.0 NaN

Oregon 36.0 13.0

Pennsylvania 110.0 20.0

Rhode Island 1.0 NaN

South Carolina 15.0 3.0

Tennessee 96.0 47.0

Texas 49.0 22.0

Utah 16.0 6.0

Vermont 2.0 1.0

Virginia 49.0 11.0

Washington 75.0 23.0

West Virginia 8.0 3.0

In [111…
Status_complaints.plot.bar(figsize=(10,10),stacked=True)

plt.xlabel("State",fontweight="bold",fontsize=15)

plt.title("State waise complaint",fontweight="bold",fontsize=15);

INSIGHTS=From this above chart ,we can clearly see that Georgia has maximun complaints

task7=Which state has the highest percentage of unresolved complaints

In [112…
comcast["newStatus"].value_counts()

Out[112… Closed 1707

Open 517

Name: newStatus, dtype: int64

In [126…
unresolved_data=comcast.groupby(["State","newStatus"]).size().unstack().fillna(0).sort_values(by="Open",ascending=False)

In [128…
unresolved_data

Out[128… newStatus Closed Open

State

Georgia 208.0 80.0

California 159.0 61.0

Tennessee 96.0 47.0

Florida 201.0 39.0

Illinois 135.0 29.0

Washington 75.0 23.0

Michigan 92.0 23.0

Colorado 58.0 22.0

Texas 49.0 22.0

Pennsylvania 110.0 20.0

New Jersey 56.0 19.0

Mississippi 23.0 16.0

Maryland 63.0 15.0

Oregon 36.0 13.0

Virginia 49.0 11.0

Massachusetts 50.0 11.0

Alabama 17.0 9.0

Indiana 50.0 9.0

Utah 16.0 6.0

Arizona 14.0 6.0

New Hampshire 8.0 4.0

New Mexico 11.0 4.0

Minnesota 29.0 4.0

Delaware 8.0 4.0

West Virginia 8.0 3.0

Connecticut 9.0 3.0

Kentucky 4.0 3.0

South Carolina 15.0 3.0

Maine 3.0 2.0

District Of Columbia 14.0 2.0

Kansas 1.0 1.0

Vermont 2.0 1.0

Missouri 3.0 1.0

Louisiana 12.0 1.0

Montana 1.0 0.0

Rhode Island 1.0 0.0

Ohio 3.0 0.0

District of Columbia 1.0 0.0

North Carolina 3.0 0.0

New York 6.0 0.0

Nevada 1.0 0.0

Arkansas 6.0 0.0

Iowa 1.0 0.0

In [131…
unresolved_data["unresolved_comp_%"]=unresolved_data["Open"]/unresolved_data["Open"].sum()*100

In [132…
unresolved_data

Out[132… newStatus Closed Open unresolved_comp_%

State

Georgia 208.0 80.0 15.473888

California 159.0 61.0 11.798839

Tennessee 96.0 47.0 9.090909

Florida 201.0 39.0 7.543520

Illinois 135.0 29.0 5.609284

Washington 75.0 23.0 4.448743

Michigan 92.0 23.0 4.448743

Colorado 58.0 22.0 4.255319

Texas 49.0 22.0 4.255319

Pennsylvania 110.0 20.0 3.868472

New Jersey 56.0 19.0 3.675048

Mississippi 23.0 16.0 3.094778

Maryland 63.0 15.0 2.901354

Oregon 36.0 13.0 2.514507

Virginia 49.0 11.0 2.127660

Massachusetts 50.0 11.0 2.127660

Alabama 17.0 9.0 1.740812

Indiana 50.0 9.0 1.740812

Utah 16.0 6.0 1.160542

Arizona 14.0 6.0 1.160542

New Hampshire 8.0 4.0 0.773694

New Mexico 11.0 4.0 0.773694

Minnesota 29.0 4.0 0.773694

Delaware 8.0 4.0 0.773694

West Virginia 8.0 3.0 0.580271

Connecticut 9.0 3.0 0.580271

Kentucky 4.0 3.0 0.580271

South Carolina 15.0 3.0 0.580271

Maine 3.0 2.0 0.386847

District Of Columbia 14.0 2.0 0.386847

Kansas 1.0 1.0 0.193424

Vermont 2.0 1.0 0.193424

Missouri 3.0 1.0 0.193424

Louisiana 12.0 1.0 0.193424

Montana 1.0 0.0 0.000000

Rhode Island 1.0 0.0 0.000000

Ohio 3.0 0.0 0.000000

District of Columbia 1.0 0.0 0.000000

North Carolina 3.0 0.0 0.000000

New York 6.0 0.0 0.000000

Nevada 1.0 0.0 0.000000

Arkansas 6.0 0.0 0.000000

Iowa 1.0 0.0 0.000000

In [134…
unresolved_data.plot();

INSIGHTS:- From this above chart,Georgia has maximun unresolved complaint

task8=Provide the percentage of complaints resolved till date, which were received through the Internet and customer care calls.

In [141…
resolved_data=comcast.groupby(["Received Via","newStatus"]).size().unstack().fillna(0)

In [142…
resolved_data

Out[142… newStatus Closed Open

Received Via

Customer Care Call 864 255

Internet 843 262

In [143…
resolved_data["resolved"]=resolved_data["Closed"]/resolved_data["Closed"].sum()*100

In [144…
resolved_data["resolved"]

Out[144… Received Via

Customer Care Call 50.615114

Internet 49.384886

Name: resolved, dtype: float64

In [159…
resolved_data.plot.bar()

Out[159… <AxesSubplot:xlabel='Received Via'>

INSIGHTS:- From the above pie chart we can clearly see that there are total 50.61% Complaints resolved for Customer Care Call and 49.39% for received via internet

In [ ]:

You might also like