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

Опубликовано: 14 Октябрь 2024
на канале: Portal Express
304
4

Write Python code to create a Series object Temp1 that stores temperatures of seven days in it. Take any random seven temperatures.
sumita arora pandas 1 type c question 1

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