import matplotlib.pyplot as plt
import tkinter
import numpy as np
import pandas as pd
from pandas import Series,DataFrame
data = {‘a’:[1,2,3],
‘c’:[4,5,6],
‘b’:[7,8,9]
}
frame = DataFrame(data,index=[‘one’,‘two’,‘three’])
print(frame)
print(frame.iloc[2])
print(frame.loc[‘three’])
print(frame.b)
pandas Dataframe行 列读取的方法
最新推荐文章于 2024-07-28 03:44:13 发布