def ratio(value, decimal_places=0, failure_string='N/A'):
    try:
        f = float(value)
    except ValueError:
        return failure_string
    return _saferound(f, decimal_places) + ':1'
Factory using an options dictionary.
dataset/ETHPy150Open eyeseast/python-tablefu/table_fu/formatting.py/ratio--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/ext/bulkload/simplexml_connector.py/SimpleXmlConnector.create_from_options