Debian Codegraph @

docs/source/bag-api.rst

raw
1 API
2 ===
3
4 .. currentmodule:: dask.bag
5
6 Create Bags
7 -----------
8
9 .. autosummary::
10 :toctree: generated/
11
12 from_sequence
13 from_delayed
14 from_url
15 range
16 read_text
17 read_avro
18
19 From dataframe
20 ~~~~~~~~~~~~~~
21
22 .. currentmodule:: dask.dataframe
23
24 .. autosummary::
25 :toctree: generated/
26
27 DataFrame.to_bag
28 Series.to_bag
29
30 Top-level functions
31 -------------------
32
33 .. currentmodule:: dask.bag
34
35 .. autosummary::
36 :toctree: generated/
37
38 concat
39 map
40 map_partitions
41 to_textfiles
42 zip
43
44 Random Sampling
45 ---------------
46
47 .. autosummary::
48 :toctree: generated/
49
50 random.choices
51 random.sample
52
53
54 Turn Bags into other things
55 ---------------------------
56
57 .. autosummary::
58 :toctree: generated/
59
60 Bag.to_textfiles
61 Bag.to_dataframe
62 Bag.to_delayed
63 Bag.to_avro
64
65
66 Bag Methods
67 -----------
68
69 .. autosummary::
70 :toctree: generated/
71
72 Bag
73 Bag.accumulate
74 Bag.all
75 Bag.any
76 Bag.compute
77 Bag.count
78 Bag.distinct
79 Bag.filter
80 Bag.flatten
81 Bag.fold
82 Bag.foldby
83 Bag.frequencies
84 Bag.groupby
85 Bag.join
86 Bag.map
87 Bag.map_partitions
88 Bag.max
89 Bag.mean
90 Bag.min
91 Bag.persist
92 Bag.pluck
93 Bag.product
94 Bag.reduction
95 Bag.random_sample
96 Bag.remove
97 Bag.repartition
98 Bag.starmap
99 Bag.std
100 Bag.sum
101 Bag.take
102 Bag.to_avro
103 Bag.to_dataframe
104 Bag.to_delayed
105 Bag.to_textfiles
106 Bag.topk
107 Bag.var
108 Bag.visualize
109
110
111 Item Methods
112 ------------
113
114 .. autosummary::
115 :toctree: generated/
116
117 Item
118 Item.apply
119 Item.compute
120 Item.from_delayed
121 Item.persist
122 Item.to_delayed
123 Item.visualize