Using F1 to provide examples for great Python...All my favourite things in one video. Thank you Michael!!
@mikeckennedy3 жыл бұрын
Thanks RJL! Favorites of mine too ;)
@notnull013 жыл бұрын
loving these python shorts..
@mikeckennedy3 жыл бұрын
Thanks! :)
@whkoh76193 жыл бұрын
Really showcases the batteries-included approach of Python 👍
@mikeckennedy3 жыл бұрын
Great observation, it definitely does.
@AntonioAndrade3 жыл бұрын
Nice video Michael! I will share with friends
@mikeckennedy3 жыл бұрын
Thank you Antonio!
@pedroyoshikuni67022 жыл бұрын
Thanks for the tutorial, very useful
@jaxcielo90362 жыл бұрын
Thank you for this
@mikeckennedy2 жыл бұрын
You're welcome!
@mirat32272 жыл бұрын
Thank you so much for all your valuable input! I've already learned a lot from your podcasts and videos! The collections module seems to be a great way to count list elements. What do you think about using a pandas dataframe?: import pandas as pd df = pd.DataFrame(votes) c = df.value_counts() It gives the same output. But maybe it needs more memory, because the list is first transferred to the dataframe?
@mikeckennedy2 жыл бұрын
Thanks Mira. I think pandas would be a fine solution here. Pandas has two drawback: #1, you have to install it whereas collections is built in to Python via the Standard library. #2, it may be more complex if you're not already using Pandas. But certainly if you're using Pandas already in your code, then this is a great alternative.