import numpy as np
import pandas as pd
df = pd.read_csv('calls_taken.csv', encoding='latin1', error_bad_lines=False)
df_cleaned = df.drop(['Unnamed: 17'], axis=1)
df_cleaned = df_cleaned[pd.notnull(df_cleaned['TellerKey'])]
df_cleaned.TotalCalls = df_cleaned.TotalCalls.apply(np.int64)
df_cleaned.pivot_table(index=['City', 'Team', 'Manager', 'FullName'], values=['TotalCalls', 'TotalCallsATT', 'TotalCallsACW',
'TotalCallsAVGHoldTime', 'totalCallsAHT',
'TotalConsults', 'TotalTransfers',
'TotalConference']).to_csv('output.csv')