'How to remove sudden slopes of a function?

I keep getting functions, represented as pandas' dataframes, that have an unpleasant singularity like the one on the picture — the red plot is the one I'm having a trouble with, the blue one can be ignored.
The plot Is there a way to smoothify the marked part so that it looks like the black curve using scipy or anything else?



Sources

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

Source: Stack Overflow

Solution Source