Multiple relational tables to nested JSON format using Python
问题 I'm trying to create nested JSON object by combining more than one relational tables using python/pandas. I'm a beginner in Python/pandas, so looking for bit of a help here... In the following example, instead of tables, I'm using CSV files just to keep it simple Table1.csv Emp_id, Gender, Age 1, M, 32 2, M, 35 3, F, 31 Table2.csv Emp_id, Month, Incentive 1, Aug, 3000 1, Sep, 3500 1, Oct, 2000 2, Aug, 1500 3, Aug, 5000 3, Sep, 2400 I want to create a JSON object like below *Required output: {