Python Programming Histogram without importing pandas or csv
$30-250 CAD
Status
Publicerad över ett år sedan
$30-250 CAD
Betalning vid leverans
Deadline 5 Hours
Please view the files [login to view URL], [login to view URL], and
Design a function called histogram that has two input parameters: 1)takes one of the dictionaries generated in the code in the python file T008_M1_load_data.py. 2) A string which will indicate which attribute will be plotted (school,age,health,failures). The function will work with any of the dictionaries generated by the first four functions in [login to view URL] (student_age_dictionary,student_health_dictionary,...etc.)
The 4 functions were designed to create a dictionary out of data in the excel file [login to view URL](view it in notepad to view how the data is stacked).
I have already created a function called student_list which converts the outputted dictionary into a list which can then be used to plot a histogram, it is required to incorporate this function into the function histogram. NOTE: you cannot use import csv or pandas. And since there is both numerical and string attributes you cannot use hist. hist only works with numerical values. You are required to use the function bar from Matplotlib.pyplot.
Code I have so far:
from T008_M1_load_data import *
import string
from typing import List
def student_list(dic: dict)->list:
data_list = []
for key, value in [login to view URL]():
#Value is a list of dict
for item in value:
#Item is a dictionary
if "School" not in [login to view URL]():
item["School"] = key
[login to view URL] (item)
elif "Age" not in [login to view URL]():
item ["Age"] = key
[login to view URL](item)
elif "Health" not in [login to view URL]():
item ["Health"] = key
[login to view URL] (item)
elif "Failures" not in [login to view URL]():
item ["Failures"] = key
[login to view URL](item)
return data_list
⭐ Python Expert You want⭐
Hi, Dam!
I am very familiar with Python.
I am confident that I can complete your python project.
Have checked your project description and attachment files.
Please contact me and save your time, Let me know more details, I can start work right now.
I am looking forward to hearing from u.
Thank you.
Hello, there?
I have read your description carefully.
⭐
I have rich experiences in Python, Machine learning, Histogram.
⭐
I worked on many similar projects.
I can guarantee the quality of the job.
Please kindly message me.
Thank you.
Hi. How about you?
I have just read your proposal and I am sure I can complete the project on time.
I am a python expert who has 10+ years of experiences.
Please contact me to discuss about the project in more details.
Thanks. Best Regards.
From Bac.
Hello
I have read your project description carefully.
As a senior python developer, I will complete your project within 3 hours.
Please contact me via chat.
All the best.
From Joseluis