Piyush Raj

Piyush is a data professional passionate about using data to understand things better and make informed decisions. He has experience working as a Data Scientist in the consulting domain and holds an engineering degree from IIT Roorkee. His hobbies include watching cricket, reading, and working on side projects.

swap adjacent characters in a python string

Swap Adjacent Characters in a Python String with this Method

In this tutorial, we will look at how we can swap adjacent characters in a string. Let’s look at an example to better understand the task at hand. Swapping adjacent characters example Let’s say you have the string, “heat”, after swapping the adjacent characters, the string becomes “ehta”. Here, we’re swapping the ith character in

Swap Adjacent Characters in a Python String with this Method Read More »

pandas fix parse error year 0 is out of range

Fix Pandas – ParseError: year 0 is out of range 0000-00-00 Error

In this tutorial, we will look at how to fix the ParseError: year 0 is out of range 0000-00-00 error when using the pandas.to_datetime() function with the help of an example. Why does this occur when using pandas.to_datetime()? We use the pandas.to_datetime() function to convert a value or column to datetime type. The “pandas ParserError:

Fix Pandas – ParseError: year 0 is out of range 0000-00-00 Error Read More »

Fix out of bounds datetime error in pandas

Fix Pandas – OutOfBoundsDatetime: Out of bounds nanosecond timestamp Error

In this tutorial, we will look at how to fix the OutOfBoundsDatetime: Out of bounds nanosecond timestamp error when using the pandas.to_datetime() function with the help of an example. Why does the OutOfBoundsDatetime error occur when using pandas.to_datetime()? We use the pandas.to_datetime() function to convert a value or column to the pandas datetime type. The

Fix Pandas – OutOfBoundsDatetime: Out of bounds nanosecond timestamp Error Read More »

Scroll to Top