MCPcopy Create free account

hub / github.com/dask/dask / functions

Functions9,170 in github.com/dask/dask

↓ 2 callersFunctionmyopen
(path, *args, **kwargs)
dask/tests/test_system.py:115
↓ 2 callersFunctionn_preceding_from_1d_bool_index
Number of True index elements preceding position loc0. The index is the input assignment index that is defined in the namespace of th
dask/array/slicing.py:1622
↓ 2 callersFunctionndependencies
Number of total data elements on which this key depends For each key we return the number of tasks that must be run for us to run this task.
dask/order.py:705
↓ 2 callersMethodndim
(self)
dask/array/_array_expr/_expr.py:32
↓ 2 callersMethodne
(self, other, level=None, fill_value=None, axis=0)
dask/dataframe/dask_expr/_collection.py:4290
↓ 2 callersFunctionnearest
Each reflect each boundary value outwards This mimics what the skimage.filters.gaussian_filter(... mode="nearest") does.
dask/array/_array_expr/_overlap.py:248
↓ 2 callersFunctionnormalize_arg
Normalize user provided arguments to blockwise or map_blocks We do a few things: 1. If they are string literals that might collide with blo
dask/array/core.py:513
↓ 2 callersFunctionoptimize
Optimize several dask collections at once. Returns equivalent dask collections that all share the same merged and optimized underlying graph.
dask/base.py:599
↓ 2 callersMethodoptimize
(self)
dask/array/_array_expr/_collection.py:86
↓ 2 callersFunctionpad_edge
Helper function for padding edges. Handles the cases where the only the values on the edge are needed.
dask/array/creation.py:1020
↓ 2 callersFunctionparseCode
* Parse Python dot notation code examples into a JS object. * * @param {string} raw - Raw Python dot notation code examples * @return {object} The
docs/source/_static/config_converter.js:104
↓ 2 callersFunctionparseEnv
* Parse an environment variable declaration into a JS object. * * @param {string} raw - Raw environment variable declaration * @return {object} The
docs/source/_static/config_converter.js:65
↓ 2 callersFunctionparseYAML
* Parse a YAML string into a JS object. * * @param {string} raw - Raw YAML input * @return {object} The parsed data
docs/source/_static/config_converter.js:55
↓ 2 callersFunctionparses
(text)
dask/array/tests/test_svg.py:11
↓ 2 callersFunctionpartial_by_order
>>> from operator import add >>> partial_by_order(5, function=add, other=[(1, 10)]) 15
dask/utils.py:1455
↓ 2 callersFunctionperiodic
Copy a slice of an array around to its other side Useful to create periodic boundary conditions for overlap
dask/array/_array_expr/_overlap.py:194
↓ 2 callersMethodpermutation
(self, x)
dask/array/random.py:301
↓ 2 callersMethodpermutation
(self, x)
dask/array/_array_expr/random.py:287
↓ 2 callersMethodpersist
Persist this dask collection into memory This turns a lazy Dask collection into a Dask collection with the same metadata, but now wit
dask/base.py:326
↓ 2 callersFunctionpop
Like ``get``, but remove the element if found See Also -------- dask.config.get dask.config.set
dask/config.py:660
↓ 2 callersFunctionposify_index
Flip negative indices around to positive ones >>> posify_index(10, 3) 3 >>> posify_index(10, -3) 7 >>> posify_index(10, [3, -3])
dask/array/slicing.py:651
↓ 2 callersFunctionprep_dataclass
(a)
dask/tests/test_delayed.py:182
↓ 2 callersMethodquantile
Approximate quantiles of Series Parameters ---------- q : list/array of floats, default 0.5 (50%) Iterable of num
dask/dataframe/dask_expr/_collection.py:4553
↓ 2 callersMethodquery
Filter dataframe with complex expression Blocked version of pd.DataFrame.query Parameters ---------- expr: str
dask/dataframe/dask_expr/_collection.py:3639
↓ 2 callersFunctionraise_exception
()
dask/dataframe/tests/test_dataframe.py:2429
↓ 2 callersFunctionraise_on_meta_error
Reraise errors in this block to show metadata inference failure. Parameters ---------- funcname : str, optional If provided, will
dask/dataframe/utils.py:139
↓ 2 callersMethodrandom_split
Pseudorandomly split dataframe into different pieces row-wise Parameters ---------- frac : list List of floats th
dask/dataframe/dask_expr/_collection.py:1966
↓ 2 callersFunctionread_long
variable-length, zig-zag encoding.
dask/bag/avro.py:16
↓ 2 callersFunctionrecord_numeric_only_warnings
()
dask/dataframe/tests/test_groupby.py:1774
↓ 2 callersMethodreduction_chunk
(ser, *args, **kwargs)
dask/dataframe/dask_expr/_str_accessor.py:155
↓ 2 callersFunctionreflect
Reflect boundaries of array on the same side This is the converse of ``periodic``
dask/array/_array_expr/_overlap.py:218
↓ 2 callersFunctionrefresh
Update configuration by re-reading yaml files and env variables This mutates the global dask.config.config, or the config parameter if p
dask/config.py:564
↓ 2 callersMethodregister_inplace
Register dispatchable function
dask/backends.py:119
↓ 2 callersMethodrelease
(self)
dask/dataframe/io/utils.py:252
↓ 2 callersFunctionremote_exception
Metaclass that wraps exception type in RemoteException
dask/multiprocessing.py:79
↓ 2 callersFunctionrename
Rename deprecated keys to new keys This helps migrate older configuration versions over time Returns ------- Applied deprecations
dask/config.py:763
↓ 2 callersMethodreplace
(self, to_replace=None, value=no_default, regex=False)
dask/dataframe/dask_expr/_collection.py:2025
↓ 2 callersFunctionreshapelist
Reshape iterator to nested shape >>> reshapelist((2, 3), range(6)) [[0, 1, 2], [3, 4, 5]]
dask/core.py:537
↓ 2 callersMethodrewrite
Rewrite an expression This leverages the ``._{kind}_down`` and ``._{kind}_up`` methods defined on each class Returns
dask/_expr.py:309
↓ 2 callersFunctionrewrite_blockwise
Rewrite a stack of Blockwise expressions into a single blockwise expression Given a set of Blockwise layers, combine them into a single layer. T
dask/blockwise.py:1262
↓ 2 callersFunctionrewrite_filters
Rewriting a filter to decompose OR clauses. If a predicate part is part of all OR clauses, we can move it to the front so that we can push it down
dask/dataframe/dask_expr/_expr.py:3991
↓ 2 callersFunctionsafe_sqrt
A version of sqrt that properly handles scalar masked arrays. To mimic ``np.ma`` reductions, we need to convert scalar masked arrays that hav
dask/array/reductions.py:699
↓ 2 callersFunctionsanitize_index
Sanitize the elements for indexing along one axis >>> sanitize_index([2, 3, 5]) array([2, 3, 5]) >>> sanitize_index([True, False, True, F
dask/array/slicing.py:42
↓ 2 callersMethodseed
(self, seed=None)
dask/array/_array_expr/random.py:518
↓ 2 callersFunctionserialize
Serialize config data into a string. Typically used to pass config via the ``DASK_INTERNAL_INHERIT_CONFIG`` environment variable. Parameters
dask/config.py:847
↓ 2 callersFunctionsfqr
Direct Short-and-Fat QR Currently, this is a quick hack for non-tall-and-skinny matrices which are one chunk tall and (unless they are one ch
dask/array/linalg.py:514
↓ 2 callersFunctionshifted_sum
(df, before, after, c=0)
dask/dataframe/dask_expr/tests/test_map_partitions_overlap.py:127
↓ 2 callersFunctionshifted_sum
(df, before, after, c=0)
dask/dataframe/tests/test_rolling.py:51
↓ 2 callersFunctionshuffle_group
Splits dataframe into groups The group is determined by their final partition, and which stage we are in in the shuffle Parameters -
dask/dataframe/shuffle.py:168
↓ 2 callersMethodsize
(self)
dask/dataframe/dask_expr/_expr.py:107
↓ 2 callersFunctionsolve_triangular
Solve the equation `a x = b` for `x`, assuming a is a triangular matrix. Parameters ---------- a : (M, M) array_like A trian
dask/array/linalg.py:1114
↓ 2 callersFunctionsorted_division_locations
Find division locations and values in sorted list Examples -------- >>> L = ['A', 'B', 'C', 'D', 'E', 'F'] >>> sorted_division_locat
dask/dataframe/io/io.py:256
↓ 2 callersFunctionsplit_at_breaks
Split an array into a list of arrays (using slices) at the given breaks >>> split_at_breaks(np.arange(6), [3, 5]) [array([0, 1, 2]), array([3
dask/array/routines.py:2397
↓ 2 callersMethodsqueeze
(self, axis=None)
dask/dataframe/dask_expr/_collection.py:3319
↓ 2 callersFunctionstack
Stack arrays along a new axis Given a sequence of dask arrays, form a new dask array by stacking them along a new dimension (axis=0 by d
dask/array/_array_expr/_collection.py:1363
↓ 2 callersMethodstandard_cauchy
(self, size=None, chunks="auto", **kwargs)
dask/array/_array_expr/random.py:324
↓ 2 callersMethodstandard_normal
(self, size=None, chunks="auto", **kwargs)
dask/array/random.py:354
↓ 2 callersMethodstarmap
Apply a function using argument tuples from the given bag. This is similar to ``itertools.starmap``, except it also accepts keyword a
dask/bag/core.py:587
↓ 2 callersMethodstart
(self)
dask/dataframe/dask_expr/_indexing.py:324
↓ 2 callersMethodstart
(self, scheduler)
dask/tests/test_layers.py:26
↓ 2 callersFunctionstd
(a, axis=None, dtype=None, keepdims=False, ddof=0, split_every=None, out=None)
dask/array/reductions.py:714
↓ 2 callersFunctionsvg_2d
(chunks, offset=(0, 0), skew=(0, 0), size=200, sizes=None)
dask/array/svg.py:49
↓ 2 callersFunctionsvg_grid
Create lines of SVG text that show a grid Parameters ---------- x: numpy.ndarray y: numpy.ndarray offset: tuple translati
dask/array/svg.py:208
↓ 2 callersMethodswapaxes
Return a view of the array with ``axis1`` and ``axis2`` interchanged. Refer to :func:`dask.array.swapaxes` for full documentation. S
dask/array/core.py:2913
↓ 2 callersFunctiontakes_multiple_arguments
Does this function take multiple arguments? >>> def f(x, y): pass >>> takes_multiple_arguments(f) True >>> def f(x): pass >>> ta
dask/utils.py:653
↓ 2 callersFunctiontask_label
Label for a task on a dot graph. Examples -------- >>> from operator import add >>> task_label((add, 1, 2)) 'add' >>> task_la
dask/dot.py:12
↓ 2 callersFunctionto_graphviz
( hg, data_attributes=None, function_attributes=None, rankdir="BT", graph_attr=None, n
dask/highlevelgraph.py:867
↓ 2 callersFunctionto_task_dask
Normalize a python object and merge all sub-graphs. - Replace ``Delayed`` with their keys - Convert literals to things the schedulers can han
dask/delayed.py:300
↓ 2 callersFunctiontranspose
(a, axes=None)
dask/array/routines.py:185
↓ 2 callersFunctiontrim_internal
Trim sides from each block This couples well with the overlap operation, which may leave excess data on each block See also --------
dask/array/overlap.py:97
↓ 2 callersFunctionunion_categoricals
(to_union, sort_categories=False, ignore_order=False)
dask/dataframe/dispatch.py:138
↓ 2 callersFunctionunpack_singleton
>>> unpack_singleton([[[[1]]]]) 1 >>> unpack_singleton(np.array(np.datetime64('2000-01-01'))) array('2000-01-01', dtype='datetime64[
dask/array/core.py:4431
↓ 2 callersFunctionunzip
Unzip a list of lists into ``nout`` outputs.
dask/utils.py:2299
↓ 2 callersMethodunzip
Transform a bag of tuples to ``n`` bags of their elements. Examples -------- >>> import dask.bag as db >>> b = db.fro
dask/bag/core.py:798
↓ 2 callersFunctionvalidate_key
Validate the format of a dask key. See Also -------- iskey
dask/core.py:172
↓ 2 callersMethodvar
Variance
dask/bag/core.py:1141
↓ 2 callersFunctionvisualize
Visualize several dask graphs simultaneously. Requires ``graphviz`` to be installed. All options that are not the dask graph(s) should b
dask/base.py:774
↓ 2 callersFunctionvisualize_dsk
( dsk, filename="mydask", traverse=True, optimize_graph=False, maxval=None, o=None,
dask/base.py:877
↓ 2 callersFunctionwarm_up_thread_pool
Ensure that there is a warm thread pool. With num_workers=None on the default thread, this function warms up the default thread pool. With nu
dask/tests/test_threaded.py:197
↓ 2 callersMethodwhere
(self, cond, other=np.nan)
dask/dataframe/dask_expr/_collection.py:2009
↓ 2 callersFunctionwrap_elemwise
Wrap up numpy function into dask.array
dask/array/ufunc.py:16
↓ 2 callersFunctionwrapper
(*args, **kwargs)
dask/utils.py:138
↓ 2 callersFunctionxdist_worker_port
Pick a TCP port that does not clash with the other pytest-xdist workers. Test modules that bind a fixed port, e.g. to talk to a local server, can
dask/utils_test.py:30
↓ 1 callersFunction_
()
dask/tests/test_task_spec.py:360
↓ 1 callersMethod__add__
(self, other)
dask/array/_array_expr/_collection.py:164
↓ 1 callersMethod__array__
(self)
dask/array/tests/test_array_core.py:2784
↓ 1 callersMethod__array_function__
(self, func, types, args, kwargs)
dask/array/tests/test_dispatch.py:127
↓ 1 callersMethod__array_ufunc__
(self, ufunc, method, *inputs, **kwargs)
dask/array/tests/test_dispatch.py:123
↓ 1 callersMethod__array_wrap__
(self, array, context=None)
dask/dataframe/dask_expr/_collection.py:4779
↓ 1 callersMethod__dask_annotations__
(self)
dask/_expr.py:1046
↓ 1 callersMethod__dask_graph__
(self)
dask/bag/core.py:382
↓ 1 callersMethod__dask_graph__
(self)
dask/array/_array_expr/tests/test_collection.py:112
↓ 1 callersMethod__dask_keys__
(self)
dask/_expr.py:1061
↓ 1 callersMethod__dask_keys__
(self)
dask/bag/core.py:385
↓ 1 callersMethod__dask_layers__
(self)
dask/delayed.py:707
↓ 1 callersMethod__dask_layers__
(self)
dask/tests/test_base.py:253
↓ 1 callersMethod__dask_postcompute__
(self)
dask/dataframe/dask_expr/_collection.py:4882
↓ 1 callersMethod__dask_postpersist__
(self)
dask/delayed.py:719
↓ 1 callersMethod__dask_rebuild_from_exprs__
(self, exprs)
dask/tests/test_composite_expr.py:130
↓ 1 callersMethod__dask_tokenize__
(self)
dask/_expr.py:151
← previousnext →1,101–1,200 of 9,170, ranked by callers