application_vnd.jupyter.stderr_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]

print('Columns in train dataset are as follows:\n')
a = train.columns
print(*a, sep=', ')
print('\n', '$' * 100, '\n')
print('Columns in test dataset are as follows:\n')
b = test.columns
print(*b, sep=', ')