Advertisements
Advertisements
प्रश्न
What is a Series in Python Pandas? Also, give a suitable example to support your answer.
थोडक्यात उत्तर
Advertisements
उत्तर
A Series is a one-dimensional array containing a sequence of values of any data type (int, float, list, string, etc) which by default have numeric data labels starting from zero. We can imagine a Pandas Series as a column in a spreadsheet. An example of a series containing the names of students is given below:
| Index | Value |
| 0 | Arnab |
| 1 | Samridhi |
| 2 | Ramit |
| 3 | Divyam |
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
