Walmart script in production! And more notes.
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user