Skip to content

Commit

Permalink
encapsulation
Browse files Browse the repository at this point in the history
  • Loading branch information
Miryam-Schwartz committed Nov 28, 2024
1 parent 7576526 commit 3abbad1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def add_list_of_dicts_as_text(self, data_list, title=None, headers=None):

def add_dataframe_as_text(self, data_frame, title=None):
"""Adds a DataFrame to the PDF as aligned text without row numbers."""
if data_frame is None or not isinstance(data_frame, pd.DataFrame) or data_frame.empty:
if not isinstance(data_frame, pd.DataFrame) or data_frame.empty:
return

if title:
Expand Down

0 comments on commit 3abbad1

Please sign in to comment.