Skip to content

Instantly share code, notes, and snippets.

@asnramos
Forked from BrendaHali/PandasProfiling.ipynb
Created March 7, 2020 20:27
Show Gist options
  • Save asnramos/ddb673ecb6a3bc3efb28947255166683 to your computer and use it in GitHub Desktop.
Save asnramos/ddb673ecb6a3bc3efb28947255166683 to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"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