From 012a1ed461ceb99084672dd3f49d0ae17a6bc295 Mon Sep 17 00:00:00 2001 From: Mark McMahon Date: Mon, 28 Aug 2023 12:07:36 +0200 Subject: [PATCH] Pdf --- src/mridle/extras/datasets/pandas_styler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mridle/extras/datasets/pandas_styler.py b/src/mridle/extras/datasets/pandas_styler.py index 2e6efdca..dfd60a86 100644 --- a/src/mridle/extras/datasets/pandas_styler.py +++ b/src/mridle/extras/datasets/pandas_styler.py @@ -10,7 +10,7 @@ import fsspec import numpy as np -from matplotlib.pyplot import plot as plt +import matplotlib.pyplot as plt from typing import Any, Dict @@ -42,8 +42,8 @@ def _save(self, data) -> None: # using get_filepath_str ensures that the protocol and path are appended correctly for different filesystems save_path = get_filepath_str(self._get_save_path(), self._protocol) df = data.data # Extract the DataFrame from the styler - #df_html = df.to_html(index=False) # Convert DataFrame to HTML - #with open(save_path, "w") as f: + # df_html = df.to_html(index=False) # Convert DataFrame to HTML + # with open(save_path, "w") as f: # f.write(df_html) df = data.data # Extract the DataFrame from the styler