Skip to content

Commit 407691b

Browse files
committed
Revert import tables back to function
1 parent 23c0ba4 commit 407691b

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

pandas/io/pytables.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
import warnings
1414

1515
import numpy as np
16-
from tables import __version__ as tables_version
1716

1817
from pandas._config import config, get_option
1918

@@ -4110,6 +4109,7 @@ def write(
41104109
data_columns=None,
41114110
track_times=True,
41124111
):
4112+
from tables import __version__ as tables_version
41134113

41144114
if not append and self.is_exists:
41154115
self._handle.remove_node(self.group, "table")

pandas/tests/io/pytables/test_store.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ def test_keys(self, setup_path):
300300

301301
@pytest.mark.skipif(
302302
LooseVersion(tables.__version__) < LooseVersion("3.4.3"),
303-
reason=(
304-
"Skipping pytables test when tables version is "
305-
"lower than 3.4.3"
306-
),
303+
reason=("Skipping pytables test when tables version is lower than 3.4.3"),
307304
)
308305
def test_no_track_times(self, setup_path):
309306

0 commit comments

Comments
 (0)