Skip to content

run bug: TypeError: Argument 'freq' has incorrect type  #5

@tongnie

Description

@tongnie

Hi, this is an error when I try to run the command "python ./experiments/run_imputation.py --config imputation/spin.yaml --model-name spin --dataset-name bay_block", and my pandas version is 1.5.3, is there an easy way to fix this?
Thanks for your help!

===============================
Global seed set to 561122547
Traceback (most recent call last):
File "./experiments/run_imputation.py", line 301, in
run_experiment(args)
File "./experiments/run_imputation.py", line 146, in run_experiment
dataset = get_dataset(args.dataset_name)
File "./experiments/run_imputation.py", line 64, in get_dataset
return add_missing_values(PemsBay(), p_fault=p_fault, p_noise=p_noise,
File "C:\ProgramData\Anaconda3\envs\spin\lib\site-packages\tsl\datasets\pems_bay.py", line 32, in init
df, dist, mask = self.load()
File "C:\ProgramData\Anaconda3\envs\spin\lib\site-packages\tsl\datasets\pems_bay.py", line 78, in load
df, dist = self.load_raw()
File "C:\ProgramData\Anaconda3\envs\spin\lib\site-packages\tsl\datasets\pems_bay.py", line 69, in load_raw
datetime_idx = sorted(df.index)
File "C:\ProgramData\Anaconda3\envs\spin\lib\site-packages\pandas\core\arrays\datetimes.py", line 590, in iter
converted = ints_to_pydatetime(
TypeError: Argument 'freq' has incorrect type (expected pandas.libs.tslibs.offsets.BaseOffset, got numpy.bytes)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions