Home

Welcome To My Technical Blog

Random Python Tips and Machine Learning Experience

Latest from the Blog

Python Random Tips #9

This is not a Python Starter Tutorial but advanced Python Tips in a Random Order. Do you know the use of ‘else’ in loop (for and while) in Python? The ‘else’ part of statements will get executed only if the for loop completes and reaches it’s end without any ‘break’. #1 Let’s take an example:…

Random Python Question #7

What is ‘Dunder init’? Dunder is ‘Double under(score)’ is one of the special method in Python. As you can see this method got two underscores at beginning and the end of the method name (init). This dunder init is kind of ‘constructor’ from other object oriented programming languages. When a new instance of a Python…

Random Python Question #6

When loc and iloc can give same output? Let’s take an example: what is the output of loc[1] for the above Data Frame? When we use iloc[1], the output is: That is, the output is same for both loc and iloc. Please note: We need to provide label as input for data filtering for loc.…

Thank you Markus Spiske on Unsplash for the background image!

Design a site like this with WordPress.com
Get started