jmpy.common package

Submodules

jmpy.common.colors module

jmpy.common.colors.colormap(series, kind='discrete', cmap='default', color_dict=False)[source]

Create a color map for series data

Params: :param series: array of series data :param kind: type of color map, no other kind implemented yet :param cmap: specify your own color map :param color_dict: If true, returns a dictionary of series: colors, otherwise

return an ndarray of colors for each row

jmpy.common.stats module

jmpy.common.stats.array_stats(x, data=None, by=None, custom=None)[source]
Returns a namedtuple with the following attributes:
mean, stdev, min, ten, med, ninty, max

TODO: add custom stat capabilities

jmpy.common.stats.pct_sigma(array)[source]

Get normal quantiles

x : array_like
distribtion of values
sigma : ndarray
normal quantile
pct : ndarray
percentile
y : ndarray
value

Module contents