This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#quick fix for export pdf's still having the extension, we don't want that | |
directory = os.fsencode(os.path.join("exports")) | |
for file in os.listdir(directory): | |
filename = os.fsdecode(file) | |
if filename.endswith(".pdf"): #filename.pdf | |
os.rename(os.path.join("exports", filename), os.path.join("exports", filename.split(".")[0])) | |
if filename.endswith(")"): #filename.pdf(1) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import shutil | |
import xml.etree.ElementTree as ET | |
import subprocess | |
import pandas as pd | |
def xml_editor(beanname: str, dataframe: pd.DataFrame, id_column_name: str): | |
"""This function edits the process-conf.xml file to change the filter of the beanname passed in. | |
It then runs the process.bat file to run the beanname passed in.""" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for i in lines: | |
print(f"i: {i}") // i: 72-77,20-77 | |
split = i.split(",") | |
print(f"split: {split}") // split: ['72-77', '20-77'] | |
print(len(split)) // 2 | |
print(type(split)) // <class 'list'> | |
print(split[0]) // 72-77 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sign here :D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
guestbook |