Skip to content

Commit 939b0aa

Browse files
authored
Defer importing pandas
1 parent ed317ab commit 939b0aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_pandas/io.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import django
2-
import pandas as pd
32

43
from .utils import update_with_verbose, get_related_model
54

@@ -82,6 +81,7 @@ def read_frame(qs, fieldnames=(), index_col=None, coerce_float=False,
8281
column_names: If not None, use to override the column names in the
8382
DateFrame
8483
"""
84+
import pandas as pd
8585

8686
if fieldnames:
8787
fieldnames = pd.unique(pd.Series(fieldnames))

0 commit comments

Comments
 (0)