georgebv / pyextremes

Extreme Value Analysis (EVA) in Python
https://georgebv.github.io/pyextremes/
MIT License
237 stars 47 forks source link

Error in plot_parameter_stability() #68

Closed cassin-edwin closed 1 year ago

cassin-edwin commented 1 year ago

I have a continuous column data and wanted to plot plot_parameter_stability() from pyextremes. But I am getting an error. When I used the same column for plot_mean_residual_life() it outputted the plot perfectly.

Error: I had hidden the column name for confidential purposes image

Sample values of the data: image

Code was run on the following versions:

georgebv commented 1 year ago

Please provide a self-contained code snippet that I can run to get the same error, I cannot help you if I cannot reproduce it.

cassin-edwin commented 1 year ago

Self contained code: Just within the quotes of pd.read_excel line, replace the content with what comes when you run the code (!pip install gdown) next to 'To'

image

!pip install pyextremes

!pip install gdown

!gdown 'https://docs.google.com/spreadsheets/d/1xaXMsCRHxTmgaZDpA2roXRoF2SW0lreuxkG-EI7eWho/edit?usp=sharing'

import pandas as pd data = pd.read_excel('/Users/cassin/Desktop/export?format=xlsx')

from pyextremes import plot_parameter_stability plot_parameter_stability(data['dat'])

Please let me know if you need anything.

georgebv commented 1 year ago

Your data is not time series: it must be a pandas.Series object with date time index. Please refer to this section for more details https://georgebv.github.io/pyextremes/quickstart/#read-data