Skip to content

Commit

Permalink
Update spreadsheet_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PointlessUser committed Aug 23, 2023
1 parent 76f55db commit 631498d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions mecsimcalc/spreadsheet_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ def print_dataframe(
# convert the download file type to lowercase
download_file_type = download_file_type.lower()

# create a buffer to store the file data

# if the file type is an alias of excel, convert the DataFrame to an excel file
if download_file_type in {
"excel",
Expand All @@ -174,7 +172,7 @@ def print_dataframe(

# if the file type does not match an alias of excel, convert the DataFrame to a csv file
else:
buf = io.BytesIO()
buf = io.StringIO()
df.to_csv(buf, index=False)
buf.seek(0)

Expand Down

0 comments on commit 631498d

Please sign in to comment.