text_plain_output_1.png
import pandas as pd

poll = pd.read_csv('../input/2016-general-election-trump-vs-clinton.csv')

poll = poll.drop(['Pollster URL', 'Source URL', 'Partisan', 'Question Text', 'Question Iteration'], axis=1)

average = pd.DataFrame(poll.mean())
average.drop('Number of Observations', inplace=True)
average

std = pd.DataFrame(poll.std())
std.drop('Number of Observations', inplace=True)
std

poll_avg = pd.concat([average, std], axis=1)
poll_avg.column = ['Average', 'STD']
poll_avg

donor = pd.read_csv('../input/Donor_Data.csv')

donor.drop(donor[donor.contb_receipt_amt < 0].index, inplace=True)

donor_mean = donor['contb_receipt_amt'].mean()
donor_std = donor['contb_receipt_amt'].std()
print('Average donation was: %0.2f with a standard deviation of: %0.2f' % (donor_mean, donor_std))