Skip to content

Conversation

@pulkeet-wq
Copy link
Contributor

No description provided.

@niveditasing
Copy link

/gcbrun

# Format "date" column as "YYYY-MM"
in_df["date"] = in_df["year"] + "-" + in_df["period"].str[-2:]
in_df = in_df[["date", "value"]]
in_df["value"] = in_df["value"].replace("-", np.nan)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about converting anything that is not a number to np.nan?
in_df["value"] = pd.to_numeric(in_df["value"], errors='coerce')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ajaits Thanks for your guidance. I have made the respective changes

@ajaits
Copy link
Contributor

ajaits commented Jan 14, 2026

/gcbrun

@SandeepTuniki
Copy link
Contributor

SandeepTuniki commented Jan 14, 2026

I raised a fix for the failing test in #1840. Please wait until #1840 is merged and then pull the changes from master. Then the tests should pass.

Update: The PR is merged now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants