If you want to get the axis like following figure, how to set the axis?[img=570x508]17de94b382954af.png[/img]
A: axis( [ 0 10 15 -10 ] );
B: axis( [ -10 15 0 10 ] );
C: axis( [ 0 10 -10 15 ] );
D: axis( [ 0 -10 10 15 ] );
A: axis( [ 0 10 15 -10 ] );
B: axis( [ -10 15 0 10 ] );
C: axis( [ 0 10 -10 15 ] );
D: axis( [ 0 -10 10 15 ] );
C
举一反三
- 将df的行索引降序+列索引升序排序,正确的方法是( )。 A: 先df.sort_index(axis = 0,ascending = False),然后df.sort_index(axis = 0,ascending = True) 。 B: df.sort_index(axis = 0,ascending = True).sort_index(axis = 1,ascending = False)。 C: df.sort_index(axis = 0,ascending = False).sort_index(axis = 1)。 D: 先df.sort_index(axis = 0,ascending = False),然后df.sort_index(axis = 0) 。
- 投资方向调节税的税率分为() A: 0%、5%、10%、15%、30% B: 0%、10%、15%、30% C: 0%、5%、10%、15%、40% D: 0%、5%、10%、25%、30%
- numpy求二维矩阵H每行的和: A: sum(axis=1) B: sum(axis=0) C: sum(axis=-1) D: sum()
- 命令axis([1 10 100 200])将x轴刻度的最大值设定为100
- 命令axis([1 10 100 200])将x轴刻度的最大值设定为100。
内容
- 0
如下代码的输出是( )import numpy as npa = np.arange(6).reshape(3, 2)b = a.sum(axis=0)c = b.sum(axis=0)
- 1
In a statement like “quotesdf = quotesdf.drop(['date'], axis = )”, the argument of “axis” can only be 0 or 1. “0” represents an operation of a certain column in DataFrame; “1” represents an operation of a certain row in DataFrame.
- 2
携带角的度数为 A: 男性5~15°,女性5~10° B: 男性5~15°,女性5~15° C: 男性0~10°,女性10~15° D: 男性5~15°,女性10~15° E: 男性5~10°,女性10~15°
- 3
以组距为5,如下划分组段哪项正确( ) A: 0~,5~,10~,… B: 0~4, 5~9, 10~, … C: 0~5, 5~10, 10~15, … D: ~5, ~10, ~15, … E: 以上都不对
- 4
对于Array=np.arange(6).reshape((2,3)),执行Array.sum(axis=0)的结果为( ) A: array([3,5,7]) B: array([3,12]) C: 15 D: array([15])