def _maybe_reset_index(data):
 if data.index.equals(Index(lrange(1, (len(data) + 1)))):
  data = data.reset_index(drop=True)
 return data

def _maybe_reset_index ( data ) : if data . index . equals ( Index ( lrange ( 1 , ( len ( data ) + 1 ) ) ) ) : data = data . reset_index ( drop = True ) return data
all the rdatasets have the integer row .