Assume that we have the following tuple
S=({'country':[('India')],'state':[('Telangana')],'city':[('Hyderabad'),('Vizag')]}, {'date':[{'year': 2021, 'month':10}]})
<class 'tuple'>
Can we convert this into a dataframe and get the date part into a variable
df = key value
country India
state Telangana
city Hyderabad
city Vizag
Date = {'date':[{'year': 2021, 'month':10}]}
I have tried pd.DataFrame(json.loads(json.dumps(s))) but its not clean