Convert pandas dataframe to nest XML file in Python
Convert pandas dataframe to nest XML file in Python Question: I have a pandas dataframe looks like the following: df2 = pd.DataFrame(np.array([[‘A’, ‘2023-10-17’, ‘C’, 4, 1, 1, 1.5], [‘A’, ‘2023-10-17’, ‘C’, 5, 1, 5, 2.4], [‘A’, ‘2023-10-17’, ‘D’, 16, 1, 2, 2.3], [‘B’, ‘2023-10-17’, ‘C’, 4, 1, 1, 1.5], [‘B’, ‘2023-10-17’, ‘D’, 5, 1, 5, …