Cleaned up some folders and small Walmart template changes.

This commit is contained in:
Norm Rasmussen
2025-04-08 10:22:57 -04:00
parent e5e1bf3acd
commit a035c58c95
23 changed files with 49 additions and 18582 deletions

Binary file not shown.

Binary file not shown.

View File

@ -1,269 +0,0 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"id": "3bc892c3",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"hello world\n"
]
}
],
"source": [
"print(\"hello world\")"
]
},
{
"cell_type": "markdown",
"id": "725bdfc5",
"metadata": {},
"source": [
"This is a markdown tile. Testing. this."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "89eea5d5",
"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>OrgID</th>\n",
" <th>Organization</th>\n",
" <th>Churn Date</th>\n",
" <th>2022-01</th>\n",
" <th>2022-02</th>\n",
" <th>2022-03</th>\n",
" <th>2022-04</th>\n",
" <th>2022-05</th>\n",
" <th>2022-06</th>\n",
" <th>2022-07</th>\n",
" <th>2022-08</th>\n",
" <th>2022-09</th>\n",
" <th>2022-10</th>\n",
" <th>2022-11</th>\n",
" <th>2022-12</th>\n",
" <th>2023-01</th>\n",
" <th>2023-02</th>\n",
" <th>2023-03</th>\n",
" <th>2023-04</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>30867753</td>\n",
" <td>Aquent</td>\n",
" <td>2023-04</td>\n",
" <td>58</td>\n",
" <td>38</td>\n",
" <td>50</td>\n",
" <td>50</td>\n",
" <td>39</td>\n",
" <td>36</td>\n",
" <td>46</td>\n",
" <td>46</td>\n",
" <td>43.0</td>\n",
" <td>27.0</td>\n",
" <td>24.0</td>\n",
" <td>26</td>\n",
" <td>22</td>\n",
" <td>8.0</td>\n",
" <td>10.0</td>\n",
" <td>2.0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>33375202</td>\n",
" <td>BioLife Solutions, Inc.</td>\n",
" <td>2023-04</td>\n",
" <td>11</td>\n",
" <td>7</td>\n",
" <td>4</td>\n",
" <td>11</td>\n",
" <td>4</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>30867495</td>\n",
" <td>ZyXel Communications Inc</td>\n",
" <td>2023-04</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>4</td>\n",
" <td>2</td>\n",
" <td>2</td>\n",
" <td>1.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1.0</td>\n",
" <td>1.0</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>32999202</td>\n",
" <td>BrightLine Eating Solutions LLC</td>\n",
" <td>2023-03</td>\n",
" <td>10,362</td>\n",
" <td>7,890</td>\n",
" <td>7,272</td>\n",
" <td>8,177</td>\n",
" <td>8,468</td>\n",
" <td>7,524</td>\n",
" <td>8,509</td>\n",
" <td>5,638</td>\n",
" <td>581.0</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>30867752</td>\n",
" <td>Casio America Inc</td>\n",
" <td>2023-03</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>1</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" <td>NaN</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" OrgID Organization Churn Date 2022-01 2022-02 \n",
"0 30867753 Aquent 2023-04 58 38 \\\n",
"1 33375202 BioLife Solutions, Inc. 2023-04 11 7 \n",
"2 30867495 ZyXel Communications Inc 2023-04 1 1 \n",
"3 32999202 BrightLine Eating Solutions LLC 2023-03 10,362 7,890 \n",
"4 30867752 Casio America Inc 2023-03 NaN NaN \n",
"\n",
" 2022-03 2022-04 2022-05 2022-06 2022-07 2022-08 2022-09 2022-10 2022-11 \n",
"0 50 50 39 36 46 46 43.0 27.0 24.0 \\\n",
"1 4 11 4 NaN NaN NaN NaN NaN NaN \n",
"2 2 1 2 4 2 2 1.0 NaN NaN \n",
"3 7,272 8,177 8,468 7,524 8,509 5,638 581.0 NaN NaN \n",
"4 NaN NaN NaN 1 NaN NaN NaN NaN NaN \n",
"\n",
" 2022-12 2023-01 2023-02 2023-03 2023-04 \n",
"0 26 22 8.0 10.0 2.0 \n",
"1 NaN NaN NaN NaN NaN \n",
"2 NaN NaN 1.0 1.0 NaN \n",
"3 NaN NaN NaN NaN NaN \n",
"4 NaN NaN NaN NaN NaN "
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"import sketch\n",
"cd = pd.read_csv(\"/Users/normrasmussen/Downloads/churned_analysis.csv\")\n",
"cd.head()"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "b7cf96bb",
"metadata": {},
"outputs": [],
"source": [
"# Replace all NaN values with 0\n",
"cd.fillna(0, inplace=True)\n",
"\n",
"# Remove all commas from strings\n",
"cd.replace(',','', regex=True, inplace=True)\n",
"\n",
"# Convert all strings after the column 'Churn Data' to integers\n",
"for col in cd.columns[4:]:\n",
" cd[col] = cd[col].astype(int)\n",
"\n",
"cd.drop(columns=['OrgID'], inplace=True)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"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.11.1"
}
},
"nbformat": 4,
"nbformat_minor": 5
}

File diff suppressed because it is too large Load Diff

View File

@ -1,25 +0,0 @@
"Evaluate: Implementation Training 1 - Configuration and Setting","b2f38d8e-9262-4b30-8674-3c1e6a79bf54"
"Evaluate: Implementation Training 2 - Establish and Launch Evaluations","aa7d84cb-d2c6-475a-961e-19233ed01b40"
"Evaluate: Implementation Training 3 - User Experience","45e3aeba-3923-46f7-853a-a9317692339a"
"Evaluate: Implementation Training 4 - Reporting","55841904-8c6a-4676-a43f-b5cdd360973e"
"Evaluate: New Feature Releases","c19a3ced-d66b-4524-bc96-7a7aa7443151"
"Evaluate: The Mailing Center","6d20dd98-99d1-4659-83d8-2354e096b90e"
"Evaluate: New Faculty Training","7edfe3cf-db22-4476-9791-8fe066680733"
"Evaluate: Site Administrator Transition","8f743b2c-d32e-462a-8a55-0c4e7bcf24f4"
"Evaluate: The Student Experience","27a3dd65-409e-4983-a2de-4269d3b490e3"
"Raise: System Administration - Customizing Entities, Fields, and Relationships Training Manual","b8ce96a5-f895-4d5f-ad50-4e92912998c4"
"Raise: System Administration - Data Import and Export Training Manual","ddf88f38-2956-444e-a68b-62f8df0627d9"
"Raise: System Administration -DocumentsCorePack Installation and Configuration","ef457ac9-3bf7-415f-87cd-edf86adef14d"
"Raise: System Administration - Duplication Detection and Merging Records Training Manual","f9856c21-0b45-4b4d-b7f5-73b9477394f0"
"Reach: 2.2 Release Notes - Winter 2021","7010bfb3-121e-4c8a-b988-03f24c684068"
"Reach: 2.3 Release Notes - Spring 2021","7304dbb8-481b-4c1f-bb0e-779417d4ea23"
"Reach: 3.0 Release Notes - Summer 2021","bbd5bb1f-b3bf-45a2-a047-c4ee93af18f8"
"Reach: 3.1 Release Notes - Fall 2021","73a4386a-6783-4425-9d80-f1da41da83fc"
"Reach: 3.2 Release Notes - Winter 2022","66e4c297-2645-4e2f-94cb-92faaa5e74b4"
"Reach: 3.3 Ask A Product Manager - Spring 2022","7fdc8e90-7e0c-4f63-afeb-72c26df1d528"
"Reach: 3.4 Release Notes - Summer 2022","5913d308-8ebc-41ef-aeab-3e0c7e6c07bf"
"Reach: 3.5 Release Notes - Fall 2022","17be26aa-0c84-4a4e-9fa1-33110843b5d4"
"Reach: 3.6 Release Notes - Winter 2023","15af1c44-b4b3-49db-af6f-9b5960e4bf9e"
"Reach: 4.0 Release Notes - Spring 2023","9bedb4d9-f8fd-4617-abbb-8c85db7c070f"
"Student: Configuring Area of Study","76f4497b-e288-4413-9345-49a6df163363"
"Student: Configuring Transfer Credit Statuses","aa39386f-140e-4268-951e-716faa1a7ebd"
1 Evaluate: Implementation Training 1 - Configuration and Setting b2f38d8e-9262-4b30-8674-3c1e6a79bf54
2 Evaluate: Implementation Training 2 - Establish and Launch Evaluations aa7d84cb-d2c6-475a-961e-19233ed01b40
3 Evaluate: Implementation Training 3 - User Experience 45e3aeba-3923-46f7-853a-a9317692339a
4 Evaluate: Implementation Training 4 - Reporting 55841904-8c6a-4676-a43f-b5cdd360973e
5 Evaluate: New Feature Releases c19a3ced-d66b-4524-bc96-7a7aa7443151
6 Evaluate: The Mailing Center 6d20dd98-99d1-4659-83d8-2354e096b90e
7 Evaluate: New Faculty Training 7edfe3cf-db22-4476-9791-8fe066680733
8 Evaluate: Site Administrator Transition 8f743b2c-d32e-462a-8a55-0c4e7bcf24f4
9 Evaluate: The Student Experience 27a3dd65-409e-4983-a2de-4269d3b490e3
10 Raise: System Administration - Customizing Entities, Fields, and Relationships Training Manual b8ce96a5-f895-4d5f-ad50-4e92912998c4
11 Raise: System Administration - Data Import and Export Training Manual ddf88f38-2956-444e-a68b-62f8df0627d9
12 Raise: System Administration -DocumentsCorePack Installation and Configuration ef457ac9-3bf7-415f-87cd-edf86adef14d
13 Raise: System Administration - Duplication Detection and Merging Records Training Manual f9856c21-0b45-4b4d-b7f5-73b9477394f0
14 Reach: 2.2 Release Notes - Winter 2021 7010bfb3-121e-4c8a-b988-03f24c684068
15 Reach: 2.3 Release Notes - Spring 2021 7304dbb8-481b-4c1f-bb0e-779417d4ea23
16 Reach: 3.0 Release Notes - Summer 2021 bbd5bb1f-b3bf-45a2-a047-c4ee93af18f8
17 Reach: 3.1 Release Notes - Fall 2021 73a4386a-6783-4425-9d80-f1da41da83fc
18 Reach: 3.2 Release Notes - Winter 2022 66e4c297-2645-4e2f-94cb-92faaa5e74b4
19 Reach: 3.3 Ask A Product Manager - Spring 2022 7fdc8e90-7e0c-4f63-afeb-72c26df1d528
20 Reach: 3.4 Release Notes - Summer 2022 5913d308-8ebc-41ef-aeab-3e0c7e6c07bf
21 Reach: 3.5 Release Notes - Fall 2022 17be26aa-0c84-4a4e-9fa1-33110843b5d4
22 Reach: 3.6 Release Notes - Winter 2023 15af1c44-b4b3-49db-af6f-9b5960e4bf9e
23 Reach: 4.0 Release Notes - Spring 2023 9bedb4d9-f8fd-4617-abbb-8c85db7c070f
24 Student: Configuring Area of Study 76f4497b-e288-4413-9345-49a6df163363
25 Student: Configuring Transfer Credit Statuses aa39386f-140e-4268-951e-716faa1a7ebd

View File

@ -0,0 +1,30 @@
import requests
from urllib.request import urlretrieve
# Test for Chubb
APIKEY = "RFzu130s451F2eKgm45Ck7gyWZMvGToR6Lmf2k5V"
EXTRACT = "47156f3d-277a-4c98-b2ba-732ae364270c"
FILEID = "cpxFPY"
HEADERS = {
"accept": "application/json",
"x-api-key": APIKEY
}
def get_latest_extract():
url = f"https://analytics.northpass.io/extracts/{EXTRACT}/files/latest"
resp = requests.get(url, headers=HEADERS)
print(resp.text)
data = resp.json()
print(data)
def get_info_and_download():
url = f"https://analytics.northpass.io/extracts/{EXTRACT}/files/{FILEID}/download"
resp = requests.get(url, headers=HEADERS)
data = resp.json()
print(data['url'])
urlretrieve(data['url'], 'Chubb_MCA.csv.gz')
if __name__ == "__main__":
get_info_and_download()