e15190.utilities.dataframe_histogram

Functions

add(dfa, dfb)

arg_list_to_tuple(func)

div(dfa, dfb)

errorbar(df[, ax])

Invoke Matplotlib's errorbar function.

hist(df[, ax])

Invoke Matplotlib's hist function.

mul(dfa, dfb)

same_x_values(dfa, dfb)

sub(dfa, dfb)

sum(*dfs)

Add up multiple dataframes.

Classes

Identifier(df[, fill_errors])

e15190.utilities.dataframe_histogram._divide_arrays(arr_num, arr_den)

Element-wise division of two arrays.

Quotient is set to 0 if denominator is 0.

e15190.utilities.dataframe_histogram.sum(*dfs: pandas.core.frame.DataFrame) → pandas.core.frame.DataFrame

Add up multiple dataframes.

e15190.utilities.dataframe_histogram.errorbar(df, ax=None, **kwargs)

Invoke Matplotlib’s errorbar function.

Automatically fill up x, y and yerr in the errorbar function.

Parameters
  • df (pandas.DataFrame) – The histogram data stored in a dataFrame.

  • ax (matplotlib.axes.Axes, default None) – The axes to plot on. If None, the current axes will be used.

  • **kwargs – Additional keyword arguments to be passed to errorbar. Do not provide x, y, or yerr.

Returns

result – Return value of the errorbar function.

Return type

matplolib.container.ErrorbarContainer

e15190.utilities.dataframe_histogram.hist(df, ax=None, **kwargs)

Invoke Matplotlib’s hist function.

Automatically fill up x, weights, range, and bins in the hist function.

Parameters
  • df (pandas.DataFrame) – The histogram data stored in a dataFrame.

  • ax (matplotlib.axes.Axes, default None) – The axes to plot on. If None, the current axes will be used.

  • **kwargs – Additional keyword arguments to be passed to hist. Do not provide x, weights, range, or bins.

Returns

result – Return value of the hist function.

Return type

matplolib.container.HistContainer