Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道在 pandas 中使用 Panels 而不是多索引 DataFrames 是否存在任何计算或存储缺点。
或者他们在幕后是一样的?
它们具有相似的存储机制,只是索引方案真正不同。在性能方面,它们应该是相似的。多级 df 有更多支持(代码方面),因为它们更常用。此外,面板具有不同的切片语义,因此 dtype 保证是不同的。