Informatics Practices
Write Python code to create a Series object Temp1 that stores temperatures of seven days in it. Take any random seven temperatures.
Related Questions
Find the error in the following code ? Suggest the solution.
>>> topDfRollNo Name Marks Sec A 115 Pavni 97.5 Sec B 236 Rishi 98.0 Sec C 307 Preet 98.5 Sec D 422 Paula 98.0topDf.del['Sec D']Find the error in the following code considering the same dataframe topDf given in the previous question.
(i) topDf.rename(index=['a', 'b', 'c', 'd'])
(ii) topDf.rename(columns = {})
Write Python code to create a Series object Temp2 storing temperatures of seven days of week. Its indexes should be 'Sunday', 'Monday',… 'Saturday'.
A series object (say T1) stores the average temperature recorded on each day of a month. Write code to display the temperatures recorded on :
(i) first 7 days
(ii) last 7 days.