Skip to content

NameError: name 're' is not defined #27

@abhigarg

Description

@abhigarg

This error occurs when I am asking it to find sum of rows of certain column after filtering the rows by value of another column. In case of value being string, its applying the flag=re.IGNORECASE which is throwing the error re is not defined

This is the command returned by chatGPT:
df[df['Description/Narration'].str.contains('MONTHLY INTEREST', flags=re.IGNORECASE)]['Credit(Cr.)'].sum()

I asked this question:
df_table.llm.query("What is the total credit with MONTHLY INTEREST in Description?")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions