Skip to content

Commit 320937d

Browse files
Fix Pandas to lazy import
1 parent 4539a15 commit 320937d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyathena/result_set.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import logging
88
import re
99

10-
import pandas as pd
1110
from future.utils import raise_from
1211
from past.builtins.misc import xrange
1312

@@ -379,6 +378,7 @@ def fetchall(self):
379378
return rows
380379

381380
def _as_pandas(self):
381+
import pandas as pd
382382
if not self.output_location:
383383
raise ProgrammingError('OutputLocation is none or empty.')
384384
bucket, key = self._parse_output_location(self.output_location)

0 commit comments

Comments
 (0)