tried this:
df = pd.DataFrame(list(sample.items()),columns = ['id','age','chest_pain_type',
'blood_sugar','rest_electro','max_heart_rate', 'exercice_angina','rest_blood_pressure'])
Got this: 8 columns passed, passed data had 2 columns and the error is occuring in this line:
columns = _validate_or_indexify_columns(content, columns)
the dictionary 'sample':
{'age': '34', 'max_heart_rate': '123', 'rest_blood_pressure': '132',
'blood_sugar': '1', 'exercice_angina': '0', 'chest_pain_type': 'typ_angina',
'rest_electro': 'normal', 'id': 8808}