def _possibly_convert_platform(values):
 if isinstance(values, (list, tuple)):
  values = lib.list_to_object_array(list(values))
 if (getattr(values, 'dtype', None) == np.object_):
  if hasattr(values, '_values'):
   values = values._values
  values = lib.maybe_convert_objects(values)
 return values

def _possibly_convert_platform ( values ) : if isinstance ( values , ( list , tuple ) ) : values = lib . list_to_object_array ( list ( values ) ) if ( getattr ( values , 'dtype' , None ) == np . object_ ) : if hasattr ( values , '_values' ) : values = values . _values values = lib . maybe_convert_objects ( values ) return values
try to do platform conversion .