常见数据结构与 DataFrame
common data structures vs DataFrame
据我了解最常见的数据结构是:
Arrays
Stacks
Queues
Linked lists
Trees
Hash Tables
Heaps
Graph Data structures
DataFrame怎么样? DataFrame 是一个单独的数据结构还是上面列出的某些数据结构的变体?
DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. You can think of it like a spreadsheet or SQL table, or a dict of Series objects.
它基本上是 Series 对象的字典。现在什么是 Series 对象?
Series is a one-dimensional labeled array capable of holding any data type (integers, strings, floating point numbers, Python objects, etc.). The axis labels are collectively referred to as the index.
这些是带标签的数组
DataFrame 是 pandas
python 数据分析库的一部分,可与电子表格或 SQL table 相媲美。它不是原生 Python 类型,但 DataFrame 可以包含不同类型的列。参见 Pandas Dataframe docs
据我了解最常见的数据结构是:
Arrays
Stacks
Queues
Linked lists
Trees
Hash Tables
Heaps
Graph Data structures
DataFrame怎么样? DataFrame 是一个单独的数据结构还是上面列出的某些数据结构的变体?
DataFrame is a 2-dimensional labeled data structure with columns of potentially different types. You can think of it like a spreadsheet or SQL table, or a dict of Series objects.
它基本上是 Series 对象的字典。现在什么是 Series 对象?
Series is a one-dimensional labeled array capable of holding any data type (integers, strings, floating point numbers, Python objects, etc.). The axis labels are collectively referred to as the index.
这些是带标签的数组
DataFrame 是 pandas
python 数据分析库的一部分,可与电子表格或 SQL table 相媲美。它不是原生 Python 类型,但 DataFrame 可以包含不同类型的列。参见 Pandas Dataframe docs