Re: [Tutor] Matplotlib scatterplot help

2018-04-30 Thread Alan Gauld via Tutor
On 30/04/18 16:57, Daniel Bosah wrote: > I have a function in which returns scatterplot of a Isomap Below you show a function that creates a scatterplot but it does not return anything. Sorry to nitpick but correct terminology is quite important in understanding what you are trying to achieve. >

Re: [Tutor] updating stock list

2018-04-30 Thread Alan Gauld via Tutor
On 30/04/18 23:15, Shannon Evans via Tutor wrote: > Hi, i'm wanting to update the stock list at the end so that the fruit > that's given is taken subtracted from the original stock list. The code > i've written isn't updating it it's just staying the same. Any idea what i > can do to fix this? > >

[Tutor] updating stock list

2018-04-30 Thread Shannon Evans via Tutor
Hi, i'm wanting to update the stock list at the end so that the fruit that's given is taken subtracted from the original stock list. The code i've written isn't updating it it's just staying the same. Any idea what i can do to fix this? import json stock_json= json.load(open("stock.json")) queue

[Tutor] Matplotlib scatterplot help

2018-04-30 Thread Daniel Bosah
I have a function in which returns scatterplot of a Isomap function, which takes output from a TF-IDF function, which calculated TF-IDF values of certain articles online. I used four articles and I want to show the

Re: [Tutor] Help with loops

2018-04-30 Thread Alan Gauld via Tutor
On 30/04/18 14:35, Shannon Evans via Tutor wrote: > Hi, is there any way that i can add a loop or iteration or something so > that i dont have to write out every person who has fruit. Yes that's what loops are for. You have two options in Python: a 'for' loop or a 'while' loop In your case I sus

[Tutor] Help with loops

2018-04-30 Thread Shannon Evans via Tutor
Hi, is there any way that i can add a loop or iteration or something so that i dont have to write out every person who has fruit. This information is coming from the following json files: *queue.json* file [ ["James Bruce", "Bananas"], ["Katherine Newton", "Bananas"], ["Deborah Garcia", "