Skip to content

Commit 36f1c07

Browse files
committed
No need for handling of pytables version
1 parent 407691b commit 36f1c07

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

pandas/io/pytables.py

+1-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
import copy
77
from datetime import date, tzinfo
8-
from distutils.version import LooseVersion
98
import itertools
109
import os
1110
import re
@@ -4109,8 +4108,6 @@ def write(
41094108
data_columns=None,
41104109
track_times=True,
41114110
):
4112-
from tables import __version__ as tables_version
4113-
41144111
if not append and self.is_exists:
41154112
self._handle.remove_node(self.group, "table")
41164113

@@ -4140,8 +4137,7 @@ def write(
41404137
# set the table attributes
41414138
table.set_attrs()
41424139

4143-
if LooseVersion(tables_version) >= LooseVersion("3.4.3"):
4144-
options["track_times"] = track_times
4140+
options["track_times"] = track_times
41454141

41464142
# create the table
41474143
table._handle.create_table(table.group, **options)

pandas/tests/io/pytables/test_store.py

-4
Original file line numberDiff line numberDiff line change
@@ -298,10 +298,6 @@ def test_keys(self, setup_path):
298298
assert set(store.keys()) == expected
299299
assert set(store) == expected
300300

301-
@pytest.mark.skipif(
302-
LooseVersion(tables.__version__) < LooseVersion("3.4.3"),
303-
reason=("Skipping pytables test when tables version is lower than 3.4.3"),
304-
)
305301
def test_no_track_times(self, setup_path):
306302

307303
# GH 32682

0 commit comments

Comments
 (0)