Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

next #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .ipynb_checkpoints/test_notebook-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
"outputs": [],
"source": [
"#import necessary modules\n",
"# import the seaborn module\n",
"import seaborn as sns\n",
"# import the matplotlib module\n",
"import matplotlib.pyplot as plt\n",
"import pandas as pd\n",
"#store the url in a variable\n",
"url = \"https://community.watsonanalytics.com/wp-content/uploads/2015/04/WA_Fn-UseC_-Sales-Win-Loss.csv\"\n",
Expand Down Expand Up @@ -170,12 +174,6 @@
}
],
"source": [
"# import the seaborn module\n",
"import seaborn as sns\n",
"\n",
"# import the matplotlib module\n",
"import matplotlib.pyplot as plt\n",
"\n",
"# set the background colour of the plot to white\n",
"sns.set(style=\"whitegrid\", color_codes=True)\n",
"\n",
Expand All @@ -196,7 +194,9 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"print(\"Amazing\")"
]
}
],
"metadata": {
Expand Down
147 changes: 8 additions & 139 deletions test_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,145 +10,7 @@
"import pandas as pd\n",
Copy link

@joeyearsley joeyearsley Apr 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WOW Much good

Reply via ReviewNB

"#store the url in a variable\n",
"url = \"https://community.watsonanalytics.com/wp-content/uploads/2015/04/WA_Fn-UseC_-Sales-Win-Loss.csv\"\n",
"sales_data = pd.read_csv(url)"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>Opportunity Number</th>\n",
" <th>Supplies Subgroup</th>\n",
" <th>Supplies Group</th>\n",
" <th>Region</th>\n",
" <th>Route To Market</th>\n",
" <th>Elapsed Days In Sales Stage</th>\n",
" <th>Opportunity Result</th>\n",
" <th>Sales Stage Change Count</th>\n",
" <th>Total Days Identified Through Closing</th>\n",
" <th>Total Days Identified Through Qualified</th>\n",
" <th>Opportunity Amount USD</th>\n",
" <th>Client Size By Revenue</th>\n",
" <th>Client Size By Employee Count</th>\n",
" <th>Revenue From Client Past Two Years</th>\n",
" <th>Competitor Type</th>\n",
" <th>Ratio Days Identified To Total Days</th>\n",
" <th>Ratio Days Validated To Total Days</th>\n",
" <th>Ratio Days Qualified To Total Days</th>\n",
" <th>Deal Size Category</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1641984</td>\n",
" <td>Exterior Accessories</td>\n",
" <td>Car Accessories</td>\n",
" <td>Northwest</td>\n",
" <td>Fields Sales</td>\n",
" <td>76</td>\n",
" <td>Won</td>\n",
" <td>13</td>\n",
" <td>104</td>\n",
" <td>101</td>\n",
" <td>0</td>\n",
" <td>5</td>\n",
" <td>5</td>\n",
" <td>0</td>\n",
" <td>Unknown</td>\n",
" <td>0.69636</td>\n",
" <td>0.113985</td>\n",
" <td>0.154215</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>1658010</td>\n",
" <td>Exterior Accessories</td>\n",
" <td>Car Accessories</td>\n",
" <td>Pacific</td>\n",
" <td>Reseller</td>\n",
" <td>63</td>\n",
" <td>Loss</td>\n",
" <td>2</td>\n",
" <td>163</td>\n",
" <td>163</td>\n",
" <td>0</td>\n",
" <td>3</td>\n",
" <td>5</td>\n",
" <td>0</td>\n",
" <td>Unknown</td>\n",
" <td>0.00000</td>\n",
" <td>1.000000</td>\n",
" <td>0.000000</td>\n",
" <td>1</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" Opportunity Number Supplies Subgroup Supplies Group Region \\\n",
"0 1641984 Exterior Accessories Car Accessories Northwest \n",
"1 1658010 Exterior Accessories Car Accessories Pacific \n",
"\n",
" Route To Market Elapsed Days In Sales Stage Opportunity Result \\\n",
"0 Fields Sales 76 Won \n",
"1 Reseller 63 Loss \n",
"\n",
" Sales Stage Change Count Total Days Identified Through Closing \\\n",
"0 13 104 \n",
"1 2 163 \n",
"\n",
" Total Days Identified Through Qualified Opportunity Amount USD \\\n",
"0 101 0 \n",
"1 163 0 \n",
"\n",
" Client Size By Revenue Client Size By Employee Count \\\n",
"0 5 5 \n",
"1 3 5 \n",
"\n",
" Revenue From Client Past Two Years Competitor Type \\\n",
"0 0 Unknown \n",
"1 0 Unknown \n",
"\n",
" Ratio Days Identified To Total Days Ratio Days Validated To Total Days \\\n",
"0 0.69636 0.113985 \n",
"1 0.00000 1.000000 \n",
"\n",
" Ratio Days Qualified To Total Days Deal Size Category \n",
"0 0.154215 1 \n",
"1 0.000000 1 "
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sales_data = pd.read_csv(url)\n",
"sales_data.head()\n",
"sales_data.head(n=2)"
]
Expand Down Expand Up @@ -191,6 +53,13 @@
"plt.show()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Amazing part II\n"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down