def frame_to_yaml_safe(frame):
    return {col: series_to_yaml_safe(series)
            for col, series in frame.iteritems()}
Convert a pandas DataFrame to a dictionary that will survive
dataset/ETHPy150Open UDST/urbansim/urbansim/utils/yamlio.py/frame_to_yaml_safe