What python's Pandas data struts used for?

Go To StackoverFlow.com


There are at least four data struts in pandas.


What are the use cases for these. The documents seem to highlight slice and DataFrame. Please give examples of use cases. I know where the doc is located.

2012-04-03 22:10
by Merlin


The 3 main data structures are Series (1-dimensional), DataFrame (2D), and Panel (3D) (http://pandas.pydata.org/pandas-docs/stable/dsintro.html). A DataFrame is like a collection of Series while a Panel is like a collection of DataFrames. In many problem domains (statistics, economics, social sciences, ...) these are the 3 major kinds of data that are dealt with.


Also, DataMatrix has been deprecated. In pandas >= 0.4.0, DataMatrix is just an alias for DataFrame.

2012-04-04 22:24
by Wes McKinney