Created
January 20, 2018 05:03
-
-
Save Kristen-Huber/8c75cf0f2af29acd4d91f8f1858c1b21 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Created on Mon Jan 25 14:24:55 2016 | |
@author: Kristen | |
""" | |
import matplotlib.pyplot as plt | |
import pandas as pd | |
import scipy.stats as stats | |
df= pd.read_csv('loansData.csv') | |
df.dropna(inplace=True) | |
plt.figure() | |
df.boxplot(column='Amount.Requested') | |
plt.savefig('loanDataBoxplot.png') | |
plt.figure() | |
df.hist(column='Amount.Requested', histtype="bar") | |
plt.savefig('loanDataHistogram.png') | |
plt.figure() | |
Graph=stats.probplot(df['Amount.Requested'], dist="norm", plot=plt) | |
plt.savefig('loanDataQQplot.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment