Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove enforced openpyxl engine constraint #2696

Merged
merged 1 commit into from
Mar 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading