There are 3 ways to convert series into dataframe.
you can see the detailed explanation in the following video https://www.youtube.com/watch?v=CZhTviNnPgE
for more pandas examples visit this playlist : https://youtube.com/playlist?list=PLC_46GJy2Fm9FOig1lqAY_uNxquuP_K6L&si=dsNtQ_4PpG12hpBW