Walmart script in production! And more notes.

This commit is contained in:
Norm Rasmussen
2023-02-01 18:11:39 -05:00
parent 55eb10b0f5
commit 3fd15aee52
102 changed files with 2729 additions and 63 deletions

View File

@ -1,13 +1,13 @@
import os
import sys
from datetime import date
import glob
import shutil
import csv
import pandas as pd
rootdir = "/Users/normrasmussen/Documents/Resources/Walmart/"
downloadir = "/Users/normrasmussen/Google Drive/My Drive/Shared with Clients/Walmart_Looker/"
downloadir = (
"/Users/normrasmussen/Google Drive/My Drive/Shared with Clients/Walmart_Looker/"
)
basefile = "Walmart_Weekly_Base.xlsx"
@ -41,9 +41,9 @@ def copytoDash(latestdownload, currentDash):
# dtype={"Progress": float},
)
print(readExport)
readExport['Progress'] = readExport['Progress'].str[:-1].apply(pd.to_numeric)
readExport["Progress"] = readExport["Progress"].str[:-1].apply(pd.to_numeric)
# readExport['Progress'].apply(pd.to_numeric, errors='ignore')
print(readExport['Progress'])
print(readExport["Progress"])
readExport.drop(readExport.filter(regex="Unname"), axis=1, inplace=True)
copiedData = readExport.copy()
bringtoExcel(latestdownload, currentDash, copiedData)