'Replacing extension in the Pandas dataframe

I have a pandas dataframe containing song url with '.mp3' file extension. I want to replace '.wav'

The dataframe looks like this enter image description here

enter image description here

Here you can see that, Path column contains the path of the song in the Songs directory. The song has '.mp3' extension. But I want to replace it with '.wav' extension.

How should I do it?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source