Skip to content

Instantly share code, notes, and snippets.

@Kristen-Huber
Created January 20, 2018 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kristen-Huber/8c75cf0f2af29acd4d91f8f1858c1b21 to your computer and use it in GitHub Desktop.
Save Kristen-Huber/8c75cf0f2af29acd4d91f8f1858c1b21 to your computer and use it in GitHub Desktop.
# -*- 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