Can anyone help me with creating a pandas Data frame which shows validation accuracy where index represents max_depth and columns will be max_leaf_nodes.
Why do you want the index column to be
max_depth? I would suggest you to create a dataframe using three columns, and then change the
max_depth column to index column later.