Machine Learning

Python-password-generator

Python random password generator

Password is a secret key which is required for login into the application. It secures your account from unauthorized access. There are many instances where you want a secure password for account creation on application. Why do we need secure passwords? Hackers can hack your account using brute force attack if you keep a less […]

Python random password generator Read More »

how to sort a dictionary in python

How to sort a dictionary in python

In Python programming, dictionaries are useful data structures. They allow you to store key-value pairs. However, there might come a time when you need to  arrange the dictionary in particular order. Arranging a dictionary can be a bit tricky at first, but fear not!  In this guide, we’ll walk you through the process step by

How to sort a dictionary in python Read More »

Pandas iloc vs loc

Pandas iloc VS loc

When it comes to data wrangling in pandas, the iloc and loc method comes to our mind. The iloc and loc methods  in pandas are used for selection and indexing of rows and columns. However, they differ in terms of how they handle indexing.    What is .iloc in python? Iloc (index location) is integer

Pandas iloc VS loc Read More »

python list comprehension

Python list comprehension

What is list comprehension in python? List comprehension gives you a more concise and straightforward way of creating new lists using loops compared to the traditional approach of creating new list. Which makes our code easier to read and understand. List comprehension is a trait of intermediate-level developers. We often see list comprehension questions in

Python list comprehension Read More »

Numpy where with-multiple condition

NumPy where with multiple conditions

Tired of wrangling data in Numpy using nested if, elif and else statements. Making your code bulky and difficult to read code quickly as logic gets tangled. Don’t worry, we have  “Numpy where”, the function can handle data wrangling. Numpy where function is a master of arrays manipulator, effortlessly picking and choosing elements based on

NumPy where with multiple conditions Read More »