geostep.visualizer.plot_power_analysis

geostep.visualizer.plot_power_analysis(power_df: DataFrame, save_path: str | None = None) None[source]

Plots the results of a power analysis as a heatmap.

Parameters:
  • power_df (pd.DataFrame) – The DataFrame returned by the run_power_analysis function. It should contain ‘effect_size’, ‘test_weeks’, and ‘power’ columns.

  • save_path (str, optional) – If provided, saves the plot to this path. Otherwise, displays the plot.