Posts by Sumit Chhirush

Author Biographical Info: Not available

Python dir() method with example

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn the Python dir() method with examples. dir({parameter}) method: dir() method is Python’s inbuilt method. It takes only one .... Read More

How to create NumPy linspace out of datetime

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to create NumPy linspace out of datetime. We can create NumPy linspace out of datetime by using the numpy.linspace() method. .... Read More

LEFT ANTI join under some matching condition in Pandas

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to join LEFT ANTI join under some matching conditions in Pandas Python. LEFT ANTI join is a part of data that is only present.... Read More

Remove \n from a string in Python (Backslash n)

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to remove \n from a string in Python (Backslash n). We are going to do this using the replace() method. replace() Method repl.... Read More

How to remove digits from end of a string in Python

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to remove digits from the end of a string in Python. We can do this using the rstrip([chars]) method. rstrip([char]) rstrip .... Read More

How to remove blank lines from a .txt file in Python

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to remove blank lines from a .txt file in Python. We can remove blank lines from a .txt file by using the strip() function. s.... Read More

Concatenate tuple elements in Python

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to concatenate tuple elements in Python. The tuple is immutable but we can concatenate two tuples using the sum() function an.... Read More

How to remove the last element from a tuple in Python

By Sumit Chhirush

Hello programmers, in this tutorial, we will learn how to remove the last element from a tuple in Python. As a tuple is an immutable object, thus we can not modify it. So we can do.... Read More

Related Posts