remove prints
This commit is contained in:
parent
fd8641299b
commit
bcf113cf80
|
@ -2,7 +2,6 @@
|
|||
import os
|
||||
import datetime
|
||||
import logging
|
||||
import subprocess
|
||||
|
||||
import pandas as pd
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
@ -212,24 +211,11 @@ class AttributionReport(object):
|
|||
with pd.ExcelWriter(output_path, engine='xlsxwriter') as writer:
|
||||
deduped_df.to_excel(writer, sheet_name='Sheet1', index=False)
|
||||
|
||||
# Open the window where the files are
|
||||
if os.name == "nt":
|
||||
subprocess.call(["explorer", self.output_dir], shell=True)
|
||||
else:
|
||||
subprocess.call(["open", self.output_dir])
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
app = AttributionReport(months=6, footer_length=6)
|
||||
print "setup App"
|
||||
app.set_dataframe_deposit("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/deposit_data.csv")
|
||||
print "set Deposit DF"
|
||||
app.set_dataframe_sf("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/salesforce_report.xlsx")
|
||||
print "Set Salesforce DF"
|
||||
app.set_output_dir("/Users/tyrelsouza/Dropbox (Addgene)/Addgene Shared/Dev/Attribution Report/Output/")
|
||||
print "set output directory"
|
||||
app.run()
|
||||
print "App Run"
|
||||
app.save()
|
||||
print "App Save"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user