-
jade.basic.pandas.stats.
calculate_stddev
(df, x, y, hue=None)[source]¶ Calcuates standard deviations for a normal distribution (Numerical data) over X and Hue categories.
If hue is given, the hue column will be added, and the overall will be of ‘ALL’
Example DataFrame output (x=’exp’, y= ‘length_recovery_freq’, hue = ‘cdr’:
SD cdr exp y20 6.739596 H2 ALL length_recovery_freq 21 7.373650 H2 min.remove_antigen-F length_recovery_freq 22 6.400637 ALL min.remove_antigen-T length_recovery_freq
Parameters: - df – pandas.DataFrame
- x – str
- y – str
- total_column – str
- hue – str
Return type: pandas.DataFrame
-
jade.basic.pandas.stats.
calculate_stddev_binomial_distribution
(df, x, y, total_column, y_mean_column, hue=None)[source]¶ Calculates standard deviations for a binomial distribution (like experiment True/False values) over X and Hue categories..
Typically used for bar-plot.
If hue is given the hue column will be added, and the overall will be of ‘ALL’, plus that of Hue
Example DataFrame output (x=’exp’, y= ‘length_recovery_freq’, hue = ‘cdr’:
SD cdr exp y20 6.739596 H2 ALL length_recovery_freq 21 7.373650 H2 min.remove_antigen-F length_recovery_freq 22 6.400637 ALL min.remove_antigen-T length_recovery_freq
Parameters: - df – pandas.DataFrame
- x – str
- y – str
- total_column – str
- hue – str
Return type: pandas.DataFrame