text_plain_output_1.png
import pandas as pd

train = pd.read_csv('../input/breast-cancer-detection/train.csv')
test = pd.read_csv('../input/breast-cancer-detection/test.csv')

train.columns = ['_'.join(col.split(' ')).lower() for col in train.columns]
test.columns = ['_'.join(col.split(' ')).lower() for col in test.columns]

a = train.columns
b = test.columns

train = train.drop('unnamed:_32', axis=1)
test = test.drop('unnamed:_32', axis=1)

print('Object type columns in Train dataset as follows:\n')
print(train.select_dtypes(exclude='float64'))
print('\n', '$' * 100, '\n')
print('Object type columns in Test dataset as follows:\n')
print(test.select_dtypes(exclude='float64'))