Skip to content

Instantly share code, notes, and snippets.

@AI-MOO
Created March 11, 2022 23:09
Show Gist options
  • Save AI-MOO/b80d74b70d57138f2fc5dea0a7168d34 to your computer and use it in GitHub Desktop.
Save AI-MOO/b80d74b70d57138f2fc5dea0a7168d34 to your computer and use it in GitHub Desktop.
# بيانات جديدة لـ 3 أشخاص
dict_patients_data = {
'age' : [65, 49, 53],
'sex' : [1, 1, 0],
'cp' : [3, 2, 3],
'trestbps' : [145, 130, 110],
'chol' : [193, 131, 236],
'fbs' : [1, 0, 1],
'restecg' : [0, 0, 1],
'thalach' : [152, 172, 150],
'exang': [0,1,0],
'oldpeak' : [1.2, 3.2, 0.6],
'slope' : [0, 1, 1],
'ca' : [1, 2, 2],
'thal' : [1, 0, 1],
}
# تحويل بيانات المرضى إلى إطار بيانات
df_patients_data = pd.DataFrame.from_dict(dict_patients_data)
df_patients_data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment