Q. Write Python code to create a Series object Temp1 that stores temperatures of seven days in it. Take any random seven temperatures.


You can understand by Watching video :-




Answer =


import pandas as pd
data = [20,30,25,35,40,39,28]
Temp1 = pd.Series(data)
print(Temp1)

Output :-

0    20
1    30
2    25
3    35
4    40
5    39
6    28
dtype: int64

>>>

2 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