def get(name): try: return getattr(stats, name) except AttributeError: raise PlotnineError( "Unknown distribution '{}'".format(name))