简体   繁体   中英

Are pandas Panels as efficient as multi-indexed DataFrames?

I am wondering whether there is any computational or storage disadvantage to using Panels instead of multi-indexed DataFrames in pandas.

Or are they the same behind the curtain?

they have a similiar storage mechanism, and only really differ in the indexing scheme. Performance wise they should be similar. There is more support (code-wise) for multi-level df's as they are more often used. In addition Panels have different silicing semantics, so dtype guarantees are different.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM