From 1daf935297be65cda7a344f5c96805bc7d371cf0 Mon Sep 17 00:00:00 2001 From: Ilias Macheras Date: Thu, 12 Dec 2024 13:53:17 +0200 Subject: [PATCH] Fix error in README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 7671cb3..0a99356 100644 --- a/README.md +++ b/README.md @@ -75,10 +75,10 @@ spi = SPI() Calculate the 1-Month SPI using Gamma function and L-moments. You must indicate the date column and the precipitation column of the DataFrame. You can have a list of precipitation columns to process. ``` -df_spi = new_spi.calculate( +df_spi = spi.calculate( rainfall_data, 'date', - 'precip', + 'TotalPrecipitation', freq="M", scale=1, fit_type="lmom", @@ -89,10 +89,10 @@ df_spi = new_spi.calculate( Calculate the 3-Month SPI using Gamma function and L-moments. You must indicate the date column and the precipitation column of the DataFrame. You can have a list of precipitation columns to process. ``` -df_spi = new_spi.calculate( +df_spi = spi.calculate( rainfall_data, 'date', - 'precip', + 'TotalPrecipitation', freq="M", scale=3, fit_type="lmom", @@ -106,7 +106,7 @@ be calculated using the integer grouping in the freq_col. Plot data ``` -fig = plot_index(df_spi, 'date', 'precip_scale_3_calculated_index') +fig = plot_index(df_spi, 'date', 'TotalPrecipitation_scale_3_calculated_index') ``` ## TO DO