Click here to Skip to main content
15,916,189 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
{101: {'Sender': 'Phillip', 'Receiver': 'Ramya', 'Start date': '14/3/2020', 'Delivery date': '25/3/2020', 'Sender_location': 'Area1', 'Receiver_location': 'Area6', 'Delivery status': 'Delivered', 'Shipping cost': 198}, 102: {'Sender': 'Romesh', 'Receiver': 'Phillip', 'Start date': '18/6/2020', 'Delivery date': '9/7/2020', 'Sender_location': 'Area2', 'Receiver_location': 'Area4', 'Delivery status': 'Delivered', 'Shipping cost': 275}, 103: {'Sender': 'Omega3', 'Receiver': 'Ramya', 'Start date': '01/12/2020', 'Delivery date': '0', 'Sender_location': 'Area5', 'Receiver_location': 'Area1', 'Delivery status': 'In-Transit', 'Shipping cost': 200}, 104: {'Sender': 'Phillip', 'Receiver': 'John', 'Start date': '23/6/2020', 'Delivery date': '25/6/2020', 'Sender_location': 'Area1', 'Receiver_location': 'Area4', 'Delivery status': 'Delivered', 'Shipping cost': 314}, 105: {'Sender': 'Ramya', 'Receiver': 'Romesh', 'Start date': '29/8/2020', 'Delivery date': '10/9/2020', 'Sender_location': 'Area5', 'Receiver_location': 'Area3', 'Delivery status': 'Delivered', 'Shipping cost': 275}, 106: {'Sender': 'John', 'Receiver': 'Omega3', 'Start date': '28/6/2020', 'Delivery date': '0', 'Sender_location': 'Area3', 'Receiver_location': 'Area1', 'Delivery status': 'In-Transit', 'Shipping cost': 270}}


What I have tried:

i want to extract the details from start and delivery date split it and then convert it into integer...how to do it?
Posted
Updated 19-Aug-21 2:21am

1 solution

That's JSON data: don't even try to process it yourself, it's far, far simpler just to use the built in JSON processing: Python JSON[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900