79578300

Date: 2025-04-17 00:56:46
Score: 0.5
Natty:
Report link

You could encode "?" as missing value:

import pandas as pd

data = {"x": [1, 2, "?"], 'y': [3, "?", 5]}
df = pd.DataFrame(data)

print(df.isnull().sum())
# x    0
# y    0

df = df.replace("?", pd.NA)
print(df.isnull().sum())
# x    1
# y    1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bob