Dear Students in this article we are discuss about the difference between Series and Dataframe which is the part of Pandas library of Python. There are 3 data structure in pandas first Series second DataFrame and last one is panel. Some questions arise in your mind like difference between series and dataframe difference between series and dataframe class 12 difference between series and dataframe in tabular form difference between series and list series and dataframe in pandas difference between pandas series and numpy array difference between series and list in python difference between series and 1d dataframe series is mutable or immutable. According to CBSE We will discuss about Only 2 Series and Dataframe. Let us discuss about the difference between Series and Dataframe.
Series
Pandas Series is a one-dimensional labeled array capable of holding data of any type (integer, string, float, python objects, etc.).
DataFrame
DataFrame is a 2-dimensional labeled data structure with row and columns .
Series | DataFrame |
---|---|
Series are 1-D | Whereas Dataframe are 2-D. |
Series consists of homogeneous data | Whereas dataframe consists of heterogeneous data. |
Series are value mutable and Size Immutable | Whereas dataframe both value and size mutable. |
0 Comments