Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPImes committed Apr 4, 2024
2 parents 91393a0 + ff91018 commit d1e1bb3
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions production_analyzer/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -411,8 +411,11 @@ def get_html(self, url) -> str:

def save_html(self, txt, fp):
"""
Save the HTML to the specified filename (if ``.save_html_dir``
has been configured).
Save the HTML (``txt``) to the specified filepath (``fp``).
.. warning::
This will overwrite any file at ``fp`` without warning.
"""
fp = Path(fp)
os.makedirs(fp.parent, exist_ok=True)
Expand All @@ -423,7 +426,12 @@ def save_html(self, txt, fp):

def save_csv(self, df, fp) -> None:
"""
Save the production ``DataFrame`` to .csv.
Save the production ``DataFrame`` (``df``) to .csv at the
specified filepath ``fp``.
.. warning::
This will overwrite any file at ``fp`` without warning.
"""
fp = Path(fp)
os.makedirs(fp.parent, exist_ok=True)
Expand Down

0 comments on commit d1e1bb3

Please sign in to comment.