Skip to content

Commit

Permalink
fix: remove openpyxl engine constraint (#2696)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaidisido committed Mar 1, 2024
1 parent 9b63eff commit bf204b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions awswrangler/s3/_read_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
import boto3

import awswrangler.pandas as pd
from awswrangler import _utils, exceptions
from awswrangler import exceptions
from awswrangler.s3._fs import open_s3_object

openpyxl = _utils.import_optional_dependency("openpyxl")

_logger: logging.Logger = logging.getLogger(__name__)


@_utils.check_optional_dependency(openpyxl, "openpyxl")
def read_excel(
path: str,
version_id: str | None = None,
Expand Down
5 changes: 1 addition & 4 deletions awswrangler/s3/_write_excel.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
import boto3
import pandas as pd

from awswrangler import _utils, exceptions
from awswrangler import exceptions
from awswrangler.s3._fs import open_s3_object

openpyxl = _utils.import_optional_dependency("openpyxl")

_logger: logging.Logger = logging.getLogger(__name__)


@_utils.check_optional_dependency(openpyxl, "openpyxl")
def to_excel(
df: pd.DataFrame,
path: str,
Expand Down

0 comments on commit bf204b0

Please sign in to comment.