python code implementation to the unknown attributes value in decision tree

Job ID: 33694185

Budget: $10 – $30 USD

By using benchmark classical dataset. Find a python code on internet for decision tree that deal with the unknown attribute values by
assign probability pi to each possible value vi of A assign fraction pi of example to each descendant in tree and edit the code to deal with the unknown value by :
1- Assign most common value of A among other examples with same target value
2- If node n tests A , assign most common value of A among other examples sorted to node n
then do a comparison between the three ways.
kindly edit the same code without using solutions from the internet If the answer for the 2 ways from the internet i will not release the payment