+ 1

Generators and data science

How I can use generators in Data science, any examples?))

11th Aug 2020, 5:27 PM
Абдулкарим Абдулрахманулы
Абдулкарим Абдулрахманулы - avatar
4 Respostas
+ 2
Great question! Generators are one of the most efficient ways you can manage resources. Generators "yield" results, which means the program will wait for the "next" command, and it will allow the processor and other resources to be used by other programs, until the "next" is called. I wrote this a few days ago...Check Cell-15, its where I have the main function. The generator I wrote displays Covid data for each state. https://www.kaggle.com/n3v375/covid-deadliest-states-and-counties
11th Aug 2020, 8:58 PM
Steven M
Steven M - avatar
11th Aug 2020, 6:47 PM
Ockert van Schalkwyk
Ockert van Schalkwyk - avatar
+ 2
@Steven: Great example and thanks for introducing kaggle!
11th Aug 2020, 9:09 PM
Ockert van Schalkwyk
Ockert van Schalkwyk - avatar
+ 1
Ockert van Schalkwyk Kaggle is great, lots of datasets to play with and learn Data Science & Machine Learning 👍👍
11th Aug 2020, 9:19 PM
Steven M
Steven M - avatar