Advertisements
Advertisements
प्रश्न
Mention any two main points of difference between Series and DataFrame of Python Pandas.
अंतर स्पष्ट करें
Advertisements
उत्तर
| S.N. | Series | DataFrame |
| 1. | A one-dimensional labeled structure that stores data of a single type, similar to one column in Excel. | A two-dimensional labeled data structure with rows and columns, similar to a table in SQL or Excel. |
| 2. | Has only one column along with an index. | Contains multiple columns with rows and an index. |
| 3. | Stores homogeneous data, meaning all values are of the same data type. | Can store heterogeneous data, with different data types across columns. |
| 4. | Uses a single index for accessing values. | Uses both row and column indices to access data. |
shaalaa.com
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
