Skip to content

Instantly share code, notes, and snippets.

@erykml
Last active May 11, 2022 09:46
Show Gist options
  • Select an option

  • Save erykml/eb6d10438ef53ad72b966e4734bc4e9d to your computer and use it in GitHub Desktop.

Select an option

Save erykml/eb6d10438ef53ad72b966e4734bc4e9d to your computer and use it in GitHub Desktop.
import pandas as pd
import numpy as np
pred_df = pd.DataFrame(
data={"class": [1, 1, 1, 0, 0],
"prob": [0.9, 0.85, 0.6, 0.4, 0.2]}
)
pred_df
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment