xxxxxxxxxx
import pandas as pd
# Example DataFrame
df = pd.DataFrame({'sku': [1100000, 1100001], 'status': [{'value': True, 'state': 'Live'}, 'Inactive']})
# Convert dictionary to string
df['status'] = df['status'].apply(lambda x: x['state'] if isinstance(x, dict) else x)
# Print the updated DataFrame
print(df)