Created
January 11, 2020 13:42
-
-
Save BrendaHali/bbc334b8f115ed7baa2a5b2215293b00 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
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"## Pandas Profiling\n", | |
"#### Exploring a NASA Dataset\n" | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"#Installing Pandas Profiling\n", | |
"!pip install pandas-profiling " | |
] | |
}, | |
{ | |
"cell_type": "code", | |
"execution_count": null, | |
"metadata": {}, | |
"outputs": [], | |
"source": [ | |
"#Importing Libraries\n", | |
"import pandas as pd\n", | |
"import numpy as np\n", | |
"import pandas_profiling as pdp\n", | |
"\n", | |
"#Pulling data from the NASA open data portal\n", | |
"data = pd.read_csv('https://data.nasa.gov/resource/gh4g-9sfh.csv')\n", | |
"\n", | |
"#Creating the Exploratory Data Analysis of our dataset\n", | |
"report = pdp.ProfileReport(data, title='Pandas Profiling Report', style={'full_width':True})\n", | |
"\n", | |
"report #Saved as variable in the case that you need to print it again" | |
] | |
} | |
], | |
"metadata": { | |
"kernelspec": { | |
"display_name": "Python 3", | |
"language": "python", | |
"name": "python3" | |
}, | |
"language_info": { | |
"codemirror_mode": { | |
"name": "ipython", | |
"version": 3 | |
}, | |
"file_extension": ".py", | |
"mimetype": "text/x-python", | |
"name": "python", | |
"nbconvert_exporter": "python", | |
"pygments_lexer": "ipython3", | |
"version": "3.7.3" | |
} | |
}, | |
"nbformat": 4, | |
"nbformat_minor": 4 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment