Skip to content

Error in model training #17

Description

@BoonlueKac

Dear Sir

I got AttributeError during gapfiling test for your notebook.
Please give me suggestion to fix this

All the best,
Boonlue

Error message and AI

The error in cell RVW4wOO1f3vL is the same AttributeError: 'DataFrame' object has no attribute 'append' that we saw in cell dNuo9J79f3vL. This error is happening inside the fluxgapfill library when it tries to compute the annual budget, and it's caused by the removal of the append method in newer versions of the pandas library.

Unfortunately, I cannot directly fix the code within the fluxgapfill library. The best ways to address this are:

Update fluxgapfill: Check if there's a newer version of the fluxgapfill library that is compatible with the pandas version you have installed. You can try running !pip install --upgrade fluxgapfill.
Contact the library authors: Let the developers of fluxgapfill know about this issue. They might be able to provide a fix or a workaround.
Downgrade pandas: As a temporary measure, you could try using an older version of pandas (before version 2.0) where append is still available. However, this might cause other compatibility problems.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions