题目内容

DataFrame数据结构用( )命令来返回所有列名

A. index
B. values
C. columns
D. iloc

查看答案
更多问题

在numpy中不能使用()方法来生成全为1的矩阵

A. np.zeros(5,5))+1
B. np.ones((5,5))
C. np.eye(5)
D. numpy.linspace(1,1,25).reshape(-1,5)

numpy中提供了那种类型的对象

A. Series
B. ndarray
C. DataFrame
D. asarray

df1=pd.DataFrame([[5,2,3],[4,5,6],[7,8,9]], index=['A','B','D'], columns=['C1','C2','C3']), 其中df1.loc['A']['C2']的值为

A. 2
B. 5
C. 3
D. 7

a=numpy.array([[5,2,3],[4,5,6],[7,8,9]]),其中a[2:,0:-1]的值为

A. array([[4, 5],[7, 8]])
B. array([[7, 8, 9]])
C. array([[7, 8]])
D. 报错

答案查题题库