Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)
str(object='') -> string

Return a nice string representation of the object.
If the argument is a string, the return value is the same object.

src/c/e/census_explorer-HEAD/scripts/combine_json.py   census_explorer(Download)
    df = pd.DataFrame(datapoints, columns = 'region district area table row column value'.split())
 
    sh.mkdir('-p', config.DIR_DATA_COMBINED)
    logger.info('Write datapoints to CSV')
    df.to_csv(path.join(config.DIR_DATA_COMBINED, 'census.csv'), encoding='utf-8', index=False)
    logger.info('Write english datapoints to CSV')
    translate_datapoints(df, 'E').to_csv(path.join(config.DIR_DATA_COMBINED, 'census-e.csv'), encoding='utf-8', index=False)
    logger.info('Write simplified datapoints to CSV')
    translate_datapoints(df, 'S').to_csv(path.join(config.DIR_DATA_COMBINED, 'census-s.csv'), encoding='utf-8', index=False)
    translate_datapoints(df, 'S').to_csv(path.join(config.DIR_DATA_COMBINED, 'census-s.csv'), encoding='utf-8', index=False)
    logger.info('Write traditional datapoints to CSV')
    translate_datapoints(df, 'T').to_csv(path.join(config.DIR_DATA_COMBINED, 'census-t.csv'), encoding='utf-8', index=False)
 
if __name__ == '__main__':

src/c/e/census_explorer-HEAD/scripts/public_facilities.py   census_explorer(Download)
 
    logger.info('Appending datapoints to CSV')
    df.to_csv(os.path.join(config.DIR_DATA_COMBINED, 'census.csv'), encoding='utf-8', index=False, mode='ab', header=False)
 
    logger.info('Write english datapoints to CSV')
    translate_datapoints(df, 'E').to_csv(os.path.join(config.DIR_DATA_COMBINED, 'census-e.csv'), encoding='utf-8', index=False, mode='ab', header=False)
    logger.info('Write simplified datapoints to CSV')
    translate_datapoints(df, 'S').to_csv(os.path.join(config.DIR_DATA_COMBINED, 'census-s.csv'), encoding='utf-8', index=False, mode='ab', header=False)
    logger.info('Write traditional datapoints to CSV')
    translate_datapoints(df, 'T').to_csv(os.path.join(config.DIR_DATA_COMBINED, 'census-t.csv'), encoding='utf-8', index=False, mode='ab', header=False)