def getDecile(type):
    """
        Return a list of decile in either string or numeric form from ``5p`` to ``95p``.
        We also include the ``50p`` for convinient.
        Parameters
        ----------
        type: str
            Type of decile. Currently supported ``'string'`` (e.g. ``'5p'``) or
            ``'numeric'`` (e.g. ``0.5``).

        Returns
        ----------
        class 'list'
            A list of decile.

    """
    if type == 'numeric': return [0.05, 0.15, 0.25, 0.35, 0.45, 0.50, 0.55, 0.65, 0.75, 0.85, 0.95]
    elif type == 'string': return ['5p','15p','25p','35p','45p','50p','55p','65p','75p','85p','95p']
    else: raise ValueError