def _arrays_to_mgr(arrays, arr_names, index, columns, dtype=None):
 if (index is None):
  index = extract_index(arrays)
 else:
  index = _ensure_index(index)
 arrays = _homogenize(arrays, index, dtype)
 axes = [_ensure_index(columns), _ensure_index(index)]
 return create_block_manager_from_arrays(arrays, arr_names, axes)

def _arrays_to_mgr ( arrays , arr_names , index , columns , dtype = None ) : if ( index is None ) : index = extract_index ( arrays ) else : index = _ensure_index ( index ) arrays = _homogenize ( arrays , index , dtype ) axes = [ _ensure_index ( columns ) , _ensure_index ( index ) ] return create_block_manager_from_arrays ( arrays , arr_names , axes )
segregate series based on type and coerce into matrices .