Skip to content

Commit

Permalink
changing no_silent_downcasting to mode.chained_assignment since it se…
Browse files Browse the repository at this point in the history
…ems the downcasting flag is deprecated for python v3.8 pandas v2
  • Loading branch information
evelyn-schmidt committed Nov 5, 2024
1 parent 12e4360 commit 625848f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/generate_reviews_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def fill_variant_called_column(df, variants):
variants["ALT"].astype(str)

common_variants = df.merge(variants[["ID", "VALIDATED"]], on="ID", how="left")
with pd.option_context("future.no_silent_downcasting", True):
with pd.option_context('mode.chained_assignment', None):
df["Variant Called by CLE Pipeline"] = common_variants["VALIDATED"].fillna(False)

def main():
Expand Down

0 comments on commit 625848f

Please sign in to comment.