# Import libraries
import pandas as pd
import [Link] as plt
from sklearn.model_selection import train_test_split
from [Link] import DecisionTreeClassifier, plot_tree
# Load the dataset from '[Link]'
data = pd.read_csv('[Link]')
N = 10 #number of attributes
# Data preprocessing
# Assuming 'Diagnosis' is the target variable, and the rest are features
X = [Link]('Diagnosis', axis=1)
y = data['Diagnosis']
# Split the data into training and testing sets
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2,
random_state=42)
# Create a Decision Tree Classifier
clf = DecisionTreeClassifier(random_state=42)
# Train the model on the training data
[Link](X_train, y_train)
# Make predictions on the test data
y_pred = [Link](X_test)
# Plot the Decision Tree
[Link](figsize=(12, 8))
plot_tree(clf, filled=True, feature_names=list([Link]), class_names=['N', 'O'])
#N means Noraml and O menas Altered
[Link]()
#Season refers in which the analysis was performed
#Age refers age at the time of analysis
#SI refers to Surgical Intervention
#HF refers to High Fevers last year
# Alcohol refers to frequency of alcohol consumption
# Sitting refers to number of hours spent sitting per day