Find Jobs
Hire Freelancers

Create a python dictionary from a list

$10-30 USD

Completed
Posted 11 months ago

$10-30 USD

Paid on delivery
I am looking for a skilled Python developer to help me create a dictionary from a list of dictionaries. Basically it is huge list of countries with states and continent where they are located all mixed up. The list structure is attached (some records) for you to look at it's structure and I need to create a python dictionary with this like: countries = { "Continents": { "Africa": { "Angola": [{ "States": ["Luanda", "Benguela", "...",] }], "South Africa": [{ "States": ["Eastern Cape", "Free State", "...",] }], .... }, "Europe": { "Portugal": [{ "States": ["Lisbon", "Porto", "...",] }], ... .Spain }, ... }} Notes: - The list should be ordered ascending by continents names, then country name and finnally state names. If you are interested in this project, please submit your proposal.
Project ID: 36786037

About the project

18 proposals
Remote project
Active 11 mos ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hey! I have gone through your description. I have expertise on python. I have previous experience on it. I can provide you quality work that meets all of your requirements. I can do this job with full accuracy and on time. Looking forward to see your interest. Thank-you.
$20 USD in 1 day
4.9 (10 reviews)
3.6
3.6
18 freelancers are bidding on average $22 USD for this job
User Avatar
Hello Sir/Madam I have development experience in various Programming Languages, OOP, Data Structures, Database Driven applications, APIs, Files handling and Data Transformation, ETL and various frameworks. I assure you an excellent solution of your project within the time frame and exactly according to the requirements. Thanks @CodingHelpLine
$30 USD in 1 day
5.0 (108 reviews)
6.1
6.1
User Avatar
Hi. I can do this task very fast. Let's send me a message to start. Thank you!
$30 USD in 1 day
5.0 (17 reviews)
4.2
4.2
User Avatar
Hello. I read your requirement and also check attachment i will do that. Please come on chat we will discuss more about this. I will waiting your reply
$30 USD in 1 day
5.0 (6 reviews)
3.4
3.4
User Avatar
✔️I am a senior python programmer who Gold Award Winner at University Challenges, Codeforces and ACM✔️ I am really interested in your project and i can do it in a few hours perfectly . I have just read your detail carefully and I have understood what you want exactly. I have 5+ years experience doing similar jobs related to these skills Python, C++ programming, AI and ML. I can complete this project perfectly on time and a low cost. Looking for your reply. Best regards.
$20 USD in 1 day
5.0 (6 reviews)
3.3
3.3
User Avatar
I understand you are looking for a Python developer to help you create a dictionary from a list of dictionaries. I am confident that I can deliver exactly what you are looking for. With my extensive experience in Python and software architecture, I am confident that I can create a Python dictionary with the structure you require. Especially if you choose me for this job, I will make sure that the order of the countries within the dictionary is ascending by continent names then country names and finally state names so that it's easy to use. I believe my skillset makes me the perfect fit for this project - please feel free to reach out if you have any further questions or would like me to provide any additional information regarding my profile or project title.
$10 USD in 1 day
5.0 (3 reviews)
2.9
2.9
User Avatar
Hi I am a python expert. I know exactly what you need. Let’s discuss further details in chat Thanks
$30 USD in 1 day
5.0 (10 reviews)
2.9
2.9
User Avatar
Hi Greeting of the Day!!! If you are looking for an Expert Python developer who can write auto-updater for websites then I am here to help you and can start right now. So can you please send me the complete detail so that I can analyze and will move further. I have complete expertise in Python and also using python libraries, Django, Flask,Docker,GraphQL, NextJ, PHP/MySQL,html5/css3, javascript, jquery, ajax, React JS. I have previously built so many custom websites and also modified the existing sites as per clients requirement and expert in bug fixing and troubleshooting in many websites. Look forward to talking to you soon and start working on this project. I hope you contact me soon. Thanks.
$30 USD in 1 day
4.4 (4 reviews)
2.7
2.7
User Avatar
Being an expert python developer, I can get this done easily. Pls inbox so that I can guide you and we can start working on it immediately! Just for 50$. Regards, Manal.
$50 USD in 2 days
5.0 (1 review)
0.9
0.9
User Avatar
Hey, I'll create and share the dictionary created from this python list within 1 hour of getting the project. Thanks :)
$20 USD in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I came across your job posting for a skilled Python developer, and I'm excited to express my interest in the project. I have reviewed the attached list structure, and I am confident in my ability to create the desired Python dictionary from the given data. Here is an overview of how I will approach the task: Iterate over the list of dictionaries: I will iterate through each dictionary in the list and extract the continent, country, and state information. Create the nested dictionary structure: Using the extracted data, I will dynamically create the nested dictionary structure in Python, starting with the continents as the top-level keys, followed by countries, and then states. Order the dictionary: To ensure the desired order, I will use Python's built-in sorting capabilities to order the continents, countries, and states alphabetically. Populate the dictionary: As I iterate through the list, I will populate the dictionary with the appropriate continent, country, and state information. Return the final dictionary: Once the iteration is complete and the dictionary is populated, I will return the resulting dictionary as the output. I am experienced in Python development and have worked on similar data transformation tasks in the past. I am confident in my ability to deliver clean and efficient code that meets your requirements. Looking forward to the opportunity to work with you. Best regards, Ali
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
I can do it, I usually work with python and it is something i can do in a short time, a will send you the script to convert the list to a dictionary and will give you de diccionary structure that you are looking for, greetings.
$20 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
codes countries_list = [ {"Country": "Angola", "Continent": "Africa", "State": "Luanda"}, {"Country": "Angola", "Continent": "Africa", "State": "Benguela"}, {"Country": "South Africa", "Continent": "Africa", "State": "Eastern Cape"}, {"Country": "South Africa", "Continent": "Africa", "State": "Free State"}, {"Country": "Portugal", "Continent": "Europe", "State": "Lisbon"}, {"Country": "Portugal", "Continent": "Europe", "State": "Porto"}, {"Country": "Spain", "Continent": "Europe", "State": "Madrid"}, {"Country": "Spain", "Continent": "Europe", "State": "Barcelona"} # Add more countries, states, and continents as needed ] countries = {} # Sort the list by continent, country, and state sorted_countries_list = sorted(countries_list, key=lambda x: (x["Continent"], x["Country"], x["State"])) for item in sorted_countries_list: continent = item["Continent"] country = item["Country"] state = item["State"] if continent not in countries: countries[continent] = {} if country not in countries[continent]: countries[continent][country] = [] if state not in countries[continent][country][0]["States"]: countries[continent][country][0]["States"].append(state) # Print the resulting dictionary print(countries)
$10 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
Hi , this is a simple looping problem i can quickly help with. I have kept the bid low too considering the low effort.
$15 USD in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ANGOLA
Luanda, Angola
5.0
8
Payment method verified
Member since Nov 24, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.