Skip to content

Tag: python

python linear chart with min max and Avg

I wonder how in Python I can create a line graph that shows the maximum, minimum and the average for a given epoch. I don’t know much about this language and how to make one x have 3 y values. I would like to create something like: I tried to do it this way the first column is the epoch,

Find max value of a column based on another in python

i have 2d list implementation as follows. It shows no. of times every student topped in exams:- i have another list of unique students as follows:- which i want to display student ranking based on their distinctions as follows:- What built in functions can be useful. I could not pose proper query on net. In o…

Why my list is not being converted to a float

I have the list of [0.5, 1.5, 2.5, 3.5]. I have another list, strlist = [‘0.5′,’1.5′,’2.5′,’3.5’] and I need to convert the elements in it to floats and then calculate the average but I’m getting the error: unsupported operand type(s) for +: ‘int&#82…