def transform_column_source_data(data):
    data_copy = {}
    for key in iterkeys(data):
        if pd and isinstance(data[key], (pd.Series, pd.Index)):
            data_copy[key] = transform_series(data[key])
        elif isinstance(data[key], np.ndarray):
            data_copy[key] = transform_array(data[key])
        else:
            data_copy[key] = traverse_data(data[key])
    return data_copy
iterate through the data of a ColumnSourceData object replacing
dataset/ETHPy150Open bokeh/bokeh/bokeh/util/serialization.py/transform_column_source_data