Skip to content

Commit

Permalink
feat: include comment, document logging methods
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas-nelson-uiuc committed Dec 31, 2024
1 parent ff7bfb6 commit c618e12
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/tidy_tools/dataframe/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@ def wrapper(self, *args, **kwargs):

return decorator

def comment(self, message: str) -> None: # numpydoc ignore=PR01,RT01
"""Log message to console to persist comments in logs."""
self._log(operation="comment", message=message)
return self

def document(self, message: str) -> None: # numpydoc ignore=PR01,RT01
"""Log message to console for documentation purposes."""
self._log(operation="document", message=message)
return self

@classmethod
def load(
cls,
Expand Down

0 comments on commit c618e12

Please sign in to comment.