← All sections

NumPy

0 / 120 solved · Easy 47 · Medium 38 · Hard 35

#TitleDifficulty
1Import NumPyEasy
2NumPy VersionEasy
3Null Vector of Size 10Easy
4Memory Size of an ArrayEasy
5Documentation of np.addEasy
6Null Vector, Fifth Value 1Easy
7Range Vector 10–49Easy
8Reverse a VectorEasy
93×3 Matrix 0–8Easy
10Indices of Non-Zero ElementsEasy
11Identity MatrixEasy
123×3×3 Random ArrayEasy
13Min and MaxEasy
14Mean ValueEasy
151 on Border, 0 InsideEasy
16Add a Zero BorderEasy
17NaN Expression ResultsEasy
18Values Below the DiagonalEasy
19Checkerboard PatternEasy
20Unravel 100th IndexEasy
21Checkerboard with tile()Easy
22Normalize a MatrixEasy
23RGBA dtype SizeEasy
24Matrix ProductEasy
25Negate Elements 3–8Easy
26Builtin sum vs np.sumEasy
27Which Expressions Are Legal?Easy
28Results of Edge ExpressionsEasy
29Round Away From ZeroEasy
30Common ValuesEasy
31Ignore NumPy WarningsEasy
32sqrt(-1) vs emath.sqrt(-1)Easy
33Yesterday and TomorrowEasy
34Dates in July 2016Medium
35Compute ((A+B)*(-A/2))Medium
36Integer PartMedium
37Rows Ranging 0–4Medium
38Build Array from GeneratorEasy
39Vector 0–1 Both ExcludedMedium
40Sort a VectorMedium
41Sum with add.reduceMedium
42Are Two Arrays Equal?Medium
43Make an Array Read-OnlyMedium
44Cartesian to PolarMedium
45Replace Max with 0Medium
46Coordinate GridMedium
47Cauchy Matrix DeterminantMedium
48Min/Max of int8Medium
49Full Array as StringMedium
50Closest Value to a ScalarMedium
51Position + Color StructMedium
52Point-by-Point DistancesMedium
53Float32 to Int32 In PlaceMedium
54Parse a Messy CSVMedium
55Enumerate a 2D ArrayMedium
562D Gaussian ArrayMedium
57Place p Elements RandomlyMedium
58Subtract Row MeansMedium
59Sort by nth ColumnMedium
60Has Null Columns?Medium
61Nearest ValueMedium
62Sum via IteratorMedium
63Array with a NameMedium
64Add 1 at Indexed PositionsHard
65Accumulate by Index ListHard
66Count Unique ColorsMedium
67Sum Over Last Two AxesHard
68Means of SubsetsHard
69Diagonal of a Dot ProductHard
70Interleave 3 ZerosHard
71Multiply (5,5,3) by (5,5)Hard
72Swap Two RowsHard
73Unique Triangle SegmentsHard
74Invert a bincountHard
75Sliding Window AverageHard
76Rolling Windows (shift by 1)Hard
77Negate Float Array In PlaceHard
78Distance Point to LinesHard
79Distance Points to LinesHard
80Centered Subpart with FillHard
81Generate Shifted RowsHard
82Matrix RankHard
83Most Frequent ValueMedium
84All Contiguous 3×3 BlocksHard
85Make a Matrix SymmetricHard
86Sum of p Matrix ProductsHard
87Block-Sum (4×4 blocks)Hard
88Game of Life StepHard
89n Largest ValuesHard
90Cartesian ProductHard
91Record Array from ArrayHard
92Cube Each ElementHard
93Rows Containing Each Row of BHard
94Rows with Unequal ValuesHard
95Ints to Binary MatrixHard
96Extract Unique RowsHard
97Outer Product with einsumHard
98Equidistant Path SamplingHard
99Multinomial RowsHard
100Bootstrap Confidence IntervalHard
101Full Array Like a PrototypeEasy
102Reproducible Random Integers (Generator API)Easy
103Binomial Draws (Generator API)Medium
104Save and Load a .npy ArrayEasy
105Save Multiple Named Arrays with savezMedium
106Selective CSV ImportMedium
107Impute Missing Values with the Column MeanMedium
108Delete Rows and ColumnsEasy
109Sort Rows by a Given ColumnEasy
110Locate Elements Matching a ConditionEasy
111Stack Two Vectors as RowsEasy
112Concatenate Two Vectors End-to-EndEasy
113Stack Two Matrices Along a New AxisMedium
114Count Occurrences of Each Unique ValueEasy
115Index of First Occurrence of Each Unique ValueEasy
116Weighted AverageEasy
117Correlation Matrix Between RowsMedium
118Histogram Bin CountsEasy
119Peak-to-Peak Range per RowEasy
120Strip Prefixes and Map Categories to CodesMedium