This blog talks about how to apply mock with python unittest module, like use "unittest.mock" to simulate the behavior of complex or real objects, configure your mock instance with "return_value" or / and "side_effect", check how you called a method with assertions and mock an object with "patch()".
This blog talks about how to get YouTube video's/channel's information by YouTube Data API and Python scripts, like getting a video ID & channel ID with a query, getting a video’s statistics data with a video ID, getting a video’s comments, getting a channel’s information with channel ID, and getting a channel’s playlist.
I extract one video's (Mojito Jay Chou) comments on YouTube with YouTube Data API and in this blog I will analyse them in different views.
This blog introduces how to set up a fake SMTP server and send e-mails with python, and how to test sending e-mails with unittest.mock.
This blog talks about how to manipulate data with "pyspark" module in a Docker container.
Recently, lots of European countries started to stop the lockdown. Thus, I'm curious about the actual COVID-19 situation around the world. In this blog, I will talk about the worldwide COVID-19 pandemic in the following points...
33 things to know about pandas dataframe
24 things to know about pandas series
113 post articles, 15 pages.