@@ -1627,7 +1627,7 @@ def infer(self, handler):
1627
1627
new_self .read_metadata (handler )
1628
1628
return new_self
1629
1629
1630
- def convert (self , values , nan_rep , encoding , errors , ** kwargs ):
1630
+ def convert (self , values , nan_rep , encoding , errors , start = None , stop = None ):
1631
1631
""" set the values from this selection: take = take ownership """
1632
1632
1633
1633
# values is a recarray
@@ -1816,11 +1816,21 @@ class GenericIndexCol(IndexCol):
1816
1816
def is_indexed (self ):
1817
1817
return False
1818
1818
1819
- def convert (self , values , nan_rep , encoding , errors , ** kwargs ):
1820
- """ set the values from this selection: take = take ownership """
1819
+ def convert (self , values , nan_rep , encoding , errors , start = None , stop = None ):
1820
+ """ set the values from this selection: take = take ownership
1821
+
1822
+ Parameters
1823
+ ----------
1824
+
1825
+ start : int, optional
1826
+ Table row number: the start of the sub-selection.
1827
+ stop : int, optional
1828
+ Table row number: the end of the sub-selection. Values larger than
1829
+ the underlying table's row count are normalized to that.
1830
+ """
1821
1831
1822
- start = kwargs . get ( ' start' , 0 )
1823
- stop = kwargs . get ( ' stop' , self .table .nrows )
1832
+ start = start if start is not None else 0
1833
+ stop = stop if stop is not None else self .table .nrows
1824
1834
stop = min (stop , self .table .nrows )
1825
1835
self .values = Int64Index (np .arange (stop - start ))
1826
1836
@@ -2166,7 +2176,7 @@ def validate_attr(self, append):
2166
2176
raise ValueError ("appended items dtype do not match existing "
2167
2177
"items dtype in table!" )
2168
2178
2169
- def convert (self , values , nan_rep , encoding , errors , ** kwargs ):
2179
+ def convert (self , values , nan_rep , encoding , errors , start = None , stop = None ):
2170
2180
"""set the data from this selection (and convert to the correct dtype
2171
2181
if we can)
2172
2182
"""
0 commit comments