This is my DataFrame
Date Value
0 "date": "1999-01-01 "s1":3.0000}
1 "date": "1999-01-02 "s1":3.0000}
2 "date": "1999-01-03 "s1":3.0000}
3 "date": "1999-01-04 "s1":3.0000}
4 "date": "1999-01-05 "s1":3.0000}
I want this DataFrame to be Transformed like this
Date Value
1999-01-01 3
1999-01-02 3
1999-01-03 3
1999-01-04 3
1999-01-05 3
1999-01-06 3
I tried this
cols = ['Date', 'Value']
for col in cols:
DataAll[col] = DataAll[col].map(lambda x: str(x).lstrip('{}').rstrip('"date:")({)(:)(s1)(})'))
Please if anyone has a solution for this Please help. I have tied mny times for the solution and i didnt get any solution that has pure solution.