Skip to content

Commit 6f4ce03

Browse files
committed
chore: using 'import_optional_dependency' to import pyarrow and changing import order
1 parent 2d07c53 commit 6f4ce03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2343,8 +2343,8 @@ def to_sql(
23432343
engine : {'auto', 'sqlalchemy'}, default 'auto'
23442344
Raises NotImplementedError if not set to 'auto'
23452345
"""
2346+
pa = import_optional_dependency("pyarrow")
23462347
from adbc_driver_manager import Error
2347-
import pyarrow as pa
23482348

23492349
if index_label:
23502350
raise NotImplementedError(

0 commit comments

Comments
 (0)