Skip to content

Commit 1406f75

Browse files
rbenesradekbenesinno
authored andcommitted
No need for handling of pytables version
1 parent 063d340 commit 1406f75

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
@@ -4116,8 +4115,6 @@ def write(
41164115
data_columns=None,
41174116
track_times=True,
41184117
):
4119-
from tables import __version__ as tables_version
4120-
41214118
if not append and self.is_exists:
41224119
self._handle.remove_node(self.group, "table")
41234120

@@ -4147,8 +4144,7 @@ def write(
41474144
# set the table attributes
41484145
table.set_attrs()
41494146

4150-
if LooseVersion(tables_version) >= LooseVersion("3.4.3"):
4151-
options["track_times"] = track_times
4147+
options["track_times"] = track_times
41524148

41534149
# create the table
41544150
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)