可以将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. It is generally the most commonly used pandas object.)
初始化
1 2 3 4 5 6 7 8 9 10
>>> import pandas as pd >>> d = {"one": [1.0, 2.0, 3.0, 5.0], "two": [4.0, 3.0, 2.0, 2.0]} >>> df = pd.DataFrame(d) >>> df one two 01.04.0 12.03.0 23.02.0 34.01.0
评论系统未开启,无法评论!