What is difference between modes a, a+, w, w+, r and r+ in built-in open function in python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: What is difference between modes a, a+, w, w+, r and r+ in built-in open function in Python? What is the difference between modes a, a+, w, w+, r, and r+ in the built-in open function in Python? In Python, the open() function is used to … Read more

What is the purpose and use of **kwargs in Python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: What is the purpose and use of **kwargs in Python? What is the purpose and use of **kwargs in Python? Kwargs allows us to pass a variable number of keyword arguments to a Python function. In the function, we use the double-asterisk ( ** ) before the … Read more

How to count the NaN values in a column in pandas DataFrame in Python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: How do I count the NaN values in a column in pandas DataFrame in Python How to count the NaN values in a column in pandas DataFrame in Python For data scientists and software engineers dealing with Python, handling missing data (NaN values) is important role … Read more

What is difference between iloc and loc in pandas

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: What is difference between iloc and loc in pandas What is difference between iloc and loc in pandas The loc and iloc functions are commonly used to select certain groups of rows (and columns) of a pandas DataFrame. The difference between the loc and iloc functions is that the loc function selects rows using row labels whereas … Read more

Geckodriver executable needs to be in PATH in Selenium using Python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: Geckodriver executable needs to be in PATH in Selenium using Python Geckodriver executable needs to be in PATH in Selenium using Python For use Geckodriver with Selenium in Python, you need to ensure that the Geckodriver executable is in your system’s PATH or provide the path … Read more

Get HTML source of Web Element in Selenium WebDriver using Python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: Get HTML source of Web Element in Selenium WebDriver using Python Get HTML source of Web Element in Selenium WebDriver using Python We can extract html source of a web element with Selenium webdriver. We can get the innerHTML attribute to get the source of the web … Read more

What is difference between Python’s Generators and Iterators

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: What is difference between Python’s Generators and Iterators What is difference between Python’s Generators and Iterators Iterators are objects that can be iterated on, and generators are special functions that leverage lazy evaluation. Implementing your own iterator means you must create an __iter__() and __next__() method, … Read more

How to case-insensitive string comparison in python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: How to case-insensitive string comparison in python How to case-insensitive string comparison in python In Python, we can perform case-insensitive string comparison by converting both strings to lowercase (or uppercase) using the lower() (or upper()) method and then comparing them. Below are the examples to explaining … Read more

What is the difference between __init__ and __call__ in python

Welcome to akashITS (Akash IT Solutions), In this article, you will learn about: What is the difference between __init__ and __call__ in python What is the difference between __init__ and __call__ in python The __init__ method is also called the constructor method which is used to initialize the objects of the specific class whereas the __call__ method allows us … Read more