Q. How is Series data structure different from a dataframe data structure?


Answer :-

A Series is a one-dimensional object that can hold any data type such as integers, floats and strings. It has only one axis (maxis = 0).

A DataFrame is a two dimensional object that can have columns with potential different types. A datafrme can be created different kind of inputs which may include dictionaries, lists, series, and even another DataFrame. Individual columns of a dataframe can act as separate Series objects.
It is the most commonly used pandas object. It has two axes (axis 0 and axis 1).

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post