79
79
def empty_like (prototype , dtype = None , order = None , subok = None , shape = None ):
80
80
"""
81
81
empty_like(prototype, dtype=None, order='K', subok=True, shape=None)
82
+ --
82
83
83
84
Return a new array with the same shape and type as a given array.
84
85
@@ -147,6 +148,7 @@ def empty_like(prototype, dtype=None, order=None, subok=None, shape=None):
147
148
def concatenate (arrays , axis = None , out = None , * , dtype = None , casting = None ):
148
149
"""
149
150
concatenate((a1, a2, ...), axis=0, out=None, dtype=None, casting="same_kind")
151
+ --
150
152
151
153
Join a sequence of arrays along an existing axis.
152
154
@@ -248,6 +250,7 @@ def concatenate(arrays, axis=None, out=None, *, dtype=None, casting=None):
248
250
def inner (a , b ):
249
251
"""
250
252
inner(a, b, /)
253
+ --
251
254
252
255
Inner product of two arrays.
253
256
@@ -340,6 +343,7 @@ def inner(a, b):
340
343
def where (condition , x = None , y = None ):
341
344
"""
342
345
where(condition, [x, y], /)
346
+ --
343
347
344
348
Return elements chosen from `x` or `y` depending on `condition`.
345
349
@@ -415,6 +419,7 @@ def where(condition, x=None, y=None):
415
419
def lexsort (keys , axis = None ):
416
420
"""
417
421
lexsort(keys, axis=-1)
422
+ --
418
423
419
424
Perform an indirect stable sort using a sequence of keys.
420
425
@@ -497,6 +502,7 @@ def lexsort(keys, axis=None):
497
502
def can_cast (from_ , to , casting = None ):
498
503
"""
499
504
can_cast(from_, to, casting='safe')
505
+ --
500
506
501
507
Returns True if cast between data types can occur according to the
502
508
casting rule. If from is a scalar or array scalar, also returns
@@ -612,6 +618,7 @@ def can_cast(from_, to, casting=None):
612
618
def min_scalar_type (a ):
613
619
"""
614
620
min_scalar_type(a, /)
621
+ --
615
622
616
623
For scalar ``a``, returns the data type with the smallest size
617
624
and smallest scalar kind which can hold its value. For non-scalar
@@ -663,6 +670,7 @@ def min_scalar_type(a):
663
670
def result_type (* arrays_and_dtypes ):
664
671
"""
665
672
result_type(*arrays_and_dtypes)
673
+ --
666
674
667
675
Returns the type that results from applying the NumPy
668
676
type promotion rules to the arguments.
@@ -735,6 +743,7 @@ def result_type(*arrays_and_dtypes):
735
743
def dot (a , b , out = None ):
736
744
"""
737
745
dot(a, b, out=None)
746
+ --
738
747
739
748
Dot product of two arrays. Specifically,
740
749
@@ -824,6 +833,7 @@ def dot(a, b, out=None):
824
833
def vdot (a , b ):
825
834
"""
826
835
vdot(a, b, /)
836
+ --
827
837
828
838
Return the dot product of two vectors.
829
839
@@ -882,6 +892,7 @@ def vdot(a, b):
882
892
def bincount (x , weights = None , minlength = None ):
883
893
"""
884
894
bincount(x, /, weights=None, minlength=0)
895
+ --
885
896
886
897
Count number of occurrences of each value in array of non-negative ints.
887
898
@@ -959,6 +970,7 @@ def bincount(x, weights=None, minlength=None):
959
970
def ravel_multi_index (multi_index , dims , mode = None , order = None ):
960
971
"""
961
972
ravel_multi_index(multi_index, dims, mode='raise', order='C')
973
+ --
962
974
963
975
Converts a tuple of index arrays into an array of flat
964
976
indices, applying boundary modes to the multi-index.
@@ -1020,6 +1032,7 @@ def ravel_multi_index(multi_index, dims, mode=None, order=None):
1020
1032
def unravel_index (indices , shape = None , order = None ):
1021
1033
"""
1022
1034
unravel_index(indices, shape, order='C')
1035
+ --
1023
1036
1024
1037
Converts a flat index or array of flat indices into a tuple
1025
1038
of coordinate arrays.
@@ -1070,6 +1083,7 @@ def unravel_index(indices, shape=None, order=None):
1070
1083
def copyto (dst , src , casting = None , where = None ):
1071
1084
"""
1072
1085
copyto(dst, src, casting='same_kind', where=True)
1086
+ --
1073
1087
1074
1088
Copies values from one array to another, broadcasting as necessary.
1075
1089
@@ -1105,6 +1119,7 @@ def copyto(dst, src, casting=None, where=None):
1105
1119
def putmask (a , mask , values ):
1106
1120
"""
1107
1121
putmask(a, mask, values)
1122
+ --
1108
1123
1109
1124
Changes elements of an array based on conditional and input values.
1110
1125
@@ -1150,6 +1165,7 @@ def putmask(a, mask, values):
1150
1165
def packbits (a , axis = None , bitorder = 'big' ):
1151
1166
"""
1152
1167
packbits(a, /, axis=None, bitorder='big')
1168
+ --
1153
1169
1154
1170
Packs the elements of a binary-valued array into bits in a uint8 array.
1155
1171
@@ -1208,6 +1224,7 @@ def packbits(a, axis=None, bitorder='big'):
1208
1224
def unpackbits (a , axis = None , count = None , bitorder = 'big' ):
1209
1225
"""
1210
1226
unpackbits(a, /, axis=None, count=None, bitorder='big')
1227
+ --
1211
1228
1212
1229
Unpacks elements of a uint8 array into a binary-valued output array.
1213
1230
@@ -1292,6 +1309,7 @@ def unpackbits(a, axis=None, count=None, bitorder='big'):
1292
1309
def shares_memory (a , b , max_work = None ):
1293
1310
"""
1294
1311
shares_memory(a, b, /, max_work=None)
1312
+ --
1295
1313
1296
1314
Determine if two arrays share memory.
1297
1315
@@ -1367,6 +1385,7 @@ def shares_memory(a, b, max_work=None):
1367
1385
def may_share_memory (a , b , max_work = None ):
1368
1386
"""
1369
1387
may_share_memory(a, b, /, max_work=None)
1388
+ --
1370
1389
1371
1390
Determine if two arrays might share memory
1372
1391
@@ -1408,6 +1427,7 @@ def may_share_memory(a, b, max_work=None):
1408
1427
def is_busday (dates , weekmask = None , holidays = None , busdaycal = None , out = None ):
1409
1428
"""
1410
1429
is_busday(dates, weekmask='1111100', holidays=None, busdaycal=None, out=None)
1430
+ --
1411
1431
1412
1432
Calculates which of the given dates are valid days, and which are not.
1413
1433
@@ -1463,6 +1483,7 @@ def busday_offset(dates, offsets, roll=None, weekmask=None, holidays=None,
1463
1483
busdaycal = None , out = None ):
1464
1484
"""
1465
1485
busday_offset(dates, offsets, roll='raise', weekmask='1111100', holidays=None, busdaycal=None, out=None)
1486
+ --
1466
1487
1467
1488
First adjusts the date to fall on a valid day according to
1468
1489
the ``roll`` rule, then applies offsets to the given dates
@@ -1557,6 +1578,7 @@ def busday_count(begindates, enddates, weekmask=None, holidays=None,
1557
1578
busdaycal = None , out = None ):
1558
1579
"""
1559
1580
busday_count(begindates, enddates, weekmask='1111100', holidays=[], busdaycal=None, out=None)
1581
+ --
1560
1582
1561
1583
Counts the number of valid days between `begindates` and
1562
1584
`enddates`, not including the day of `enddates`.
@@ -1625,6 +1647,7 @@ def busday_count(begindates, enddates, weekmask=None, holidays=None,
1625
1647
def datetime_as_string (arr , unit = None , timezone = None , casting = None ):
1626
1648
"""
1627
1649
datetime_as_string(arr, unit=None, timezone='naive', casting='same_kind')
1650
+ --
1628
1651
1629
1652
Convert an array of datetimes into an array of strings.
1630
1653
0 commit comments