Skip to content

Commit deac20e

Browse files
Chang Shewesm
Chang She
authored andcommitted
removed extraneous IntIndex instance test
1 parent 148c47e commit deac20e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/io/pytables.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def _write_index(self, group, key, index):
579579
node._v_attrs.kind = kind
580580
node._v_attrs.name = index.name
581581

582-
if isinstance(index, (DatetimeIndex, PeriodIndex, IntIndex)):
582+
if isinstance(index, (DatetimeIndex, PeriodIndex)):
583583
node._v_attrs.index_class = _class_to_alias(type(index))
584584

585585
if hasattr(index, 'freq'):
@@ -1011,8 +1011,7 @@ def _is_table_type(group):
10111011
return False
10121012

10131013
_index_type_map = {DatetimeIndex : 'datetime',
1014-
PeriodIndex : 'period',
1015-
IntIndex : 'sparse integer'}
1014+
PeriodIndex : 'period'}
10161015

10171016
_reverse_index_map = {}
10181017
for k, v in _index_type_map.iteritems():

0 commit comments

Comments
 (0)