Q. Write a program to create a Series object that stores the table of number 5.


Answer =

import pandas as pd
import numpy as np

tab = np.arange(5,55,5)
ser = pd.Series(tab)
print(ser)

Output :-

0     5
1    10
2    15
3    20
4    25
5    30
6    35
7    40
8    45
9    50
dtype: int32
>>>

6 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post