This python code can be used for data smoothening. CSAPS module has been used. For details, one can visit https://pypi.org/project/csaps/0.6.0/. Two sample data files are attached (data1.dat & data2.dat). One can done a test run based ont this data file.
References C. de Boor, A Practical Guide to Splines, Springer-Verlag, 1978.