Skip to content

Instantly share code, notes, and snippets.

@grahamharrison68
Created March 28, 2021 07:50
Show Gist options
  • Save grahamharrison68/4aa55d90a2317f319d7cd66fa8b67978 to your computer and use it in GitHub Desktop.
Save grahamharrison68/4aa55d90a2317f319d7cd66fa8b67978 to your computer and use it in GitHub Desktop.
df_normal_ci['pop_min'] = df_normal_ci.apply(lambda row: normal_distribution_ci_pop_min(row['confidence'], row['x_bar'], row['sigma'], row['n']), axis=1)
df_normal_ci['pop_max'] = df_normal_ci.apply(lambda row: normal_distribution_ci_pop_max(row['confidence'], row['x_bar'], row['sigma'], row['n']), axis=1)
df_normal_ci['confidence_interval'] = df_normal_ci.apply(lambda row: normal_distribution_ci_text(row['confidence'], row['x_bar'], row['sigma'], row['n']), axis=1)
df_normal_ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment