• Remove word from String in Python
    08 February

    Remove Word from String in Python

    Remove Word from String in Python In this tutorial, different methods are demonstrated on how to remove word from string in Python. We will study two ways to achieve this. First, we will discuss how to remove a specific word from sentences in Python. Then, we will discuss how to remove duplicate words from a […]

  • 22 January

    Replace space with underscore in Python

    Strings are an essential data type in programming. In Python, we can treat strings as an iterable of characters, and can perform a variety of functions and operations on them. Replacing characters in a string is one such operation. Ways to replace space with underscore in Python In this article, we will discuss various methods […]

  • Object of Type int64 Is Not JSON Serializable
    01 February

    [Fixed] Object of Type int64 Is Not JSON Serializable

    JSON objects are used extensively in data transmission or in data interchange between different languages. To transmit data, we often convert the data to JSON objects. After that, we transmit the data. Sometimes, while creating a JSON object, your program might run into the TypeError exception with the message “object of type int64 is not […]

  • Python Unexpected Character After Line Continuation Character
    01 February

    [Fixed] SyntaxError: Unexpected Character After Line Continuation Character

    While programming in python, sometimes we need to write very long statements. For better presentation, we often use line continuation character. However, if you don’t use line continuation character correctly, SyntaxError occurs with the message “SyntaxError: unexpected character after line continuation character in python”. In this article, we will discuss the possible cases when this […]

  • Python get year from date
    23 January

    Get year from Date in Python

    In this post, we will see how to get year from Date in Python. Dates in Python There are no data types for a date in Python. We can store and process them as strings. However, we have the datetime module to work with objects that can store and process date as well as time. […]

  • Count the number of characters in a String in Python
    13 January

    Count number of characters in a string in python

    In this post, we will see how to count number of characters in a String in Python. We can think of strings as a collection of characters, with every character at a given index. Ways to count the number of characters in a string in Python In this tutorial, we will find out the total […]

  • Check if variable is String in Python
    13 January

    Check if variable is String in python

    In this post, we will see what is a string in Python and how to check whether a given variable is a string or not. There are many options in Python when it comes to making a choice of selecting a data type and this sometimes creates a need This tutorial focuses on and demonstrates […]

  • Find rows with nan in Pandas
    11 January

    Find rows with nan in Pandas

    In this post, we will see how to find rows with nan in Pandas. What is nan values in Pandas? A pandas DataFrame can contain a large number of rows and columns. Sometimes, a DataFrame may contain NaN values. Such values indicate that something is not legal and is different from Null which means a […]

  • CharAt in Python
    08 January

    CharAt in Python

    In this tutorial, we will see about CharAt in Python. If you are already well verse in java and might be looking for charAt() alternative in Python, then you are at right place. In Python, you can get character of String similar to the way you access array elements in java. Here is simple code […]