text_plain_output_1.png
import pandas as pd

df = pd.read_csv('../input/house-votes.csv', na_values=['?'])
df.replace('^y$', value=1, regex=True, inplace=True)
df.replace('^n$', value=0, regex=True, inplace=True)
df.fillna(0, inplace=True)
df.head()