We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 51cba53 commit 16f22fdCopy full SHA for 16f22fd
pandas/io/tests/test_pytables.py
@@ -4337,16 +4337,19 @@ def test_categorical(self):
4337
with ensure_clean_store(self.path) as store:
4338
4339
# basic
4340
+ _maybe_remove(store, 's')
4341
s = Series(Categorical(['a', 'b', 'b', 'a', 'a', 'c'], categories=['a','b','c','d'], ordered=False))
4342
store.append('s', s, format='table')
4343
result = store.select('s')
4344
tm.assert_series_equal(s, result)
4345
4346
+ _maybe_remove(store, 's_ordered')
4347
s = Series(Categorical(['a', 'b', 'b', 'a', 'a', 'c'], categories=['a','b','c','d'], ordered=True))
4348
store.append('s_ordered', s, format='table')
4349
result = store.select('s_ordered')
4350
4351
4352
+ _maybe_remove(store, 'df')
4353
df = DataFrame({"s":s, "vals":[1,2,3,4,5,6]})
4354
store.append('df', df, format='table')
4355
result = store.select('df')
0 commit comments