def to_manager(sdf, columns, index):
 axes = [_ensure_index(columns), _ensure_index(index)]
 return create_block_manager_from_arrays([sdf[c] for c in columns], columns, axes)

def to_manager ( sdf , columns , index ) : axes = [ _ensure_index ( columns ) , _ensure_index ( index ) ] return create_block_manager_from_arrays ( [ sdf [ c ] for c in columns ] , columns , axes )
create and return the block manager from a dataframe of series .