Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pola-rs
GitHub Repository: pola-rs/polars
Path: blob/main/docs/source/src/rust/user-guide/expressions/lists.rs
7889 views
1
fn main() -> Result<(), Box<dyn std::error::Error>> {
2
// --8<-- [start:list-example]
3
// Contribute the Rust translation of the Python example by opening a PR.
4
// --8<-- [end:list-example]
5
6
// --8<-- [start:array-example]
7
// Contribute the Rust translation of the Python example by opening a PR.
8
// --8<-- [end:array-example]
9
10
// --8<-- [start:numpy-array-inference]
11
// Contribute the Rust translation of the Python example by opening a PR.
12
// --8<-- [end:numpy-array-inference]
13
14
// --8<-- [start:weather]
15
// Contribute the Rust translation of the Python example by opening a PR.
16
// --8<-- [end:weather]
17
18
// --8<-- [start:split]
19
// Contribute the Rust translation of the Python example by opening a PR.
20
// --8<-- [end:split]
21
22
// --8<-- [start:explode]
23
// Contribute the Rust translation of the Python example by opening a PR.
24
// --8<-- [end:explode]
25
26
// --8<-- [start:list-slicing]
27
// Contribute the Rust translation of the Python example by opening a PR.
28
// --8<-- [end:list-slicing]
29
30
// --8<-- [start:element-wise-casting]
31
// Contribute the Rust translation of the Python example by opening a PR.
32
// --8<-- [end:element-wise-casting]
33
34
// --8<-- [start:element-wise-regex]
35
// Contribute the Rust translation of the Python example by opening a PR.
36
// --8<-- [end:element-wise-regex]
37
38
// --8<-- [start:children]
39
// Contribute the Rust translation of the Python example by opening a PR.
40
// --8<-- [end:children]
41
42
// --8<-- [start:list-sorting]
43
// Contribute the Rust translation of the Python example by opening a PR.
44
// --8<-- [end:list-sorting]
45
46
// --8<-- [start:list-aggregation]
47
// Contribute the Rust translation of the Python example by opening a PR.
48
// --8<-- [end:list-aggregation]
49
50
// --8<-- [start:list-entropy]
51
// Contribute the Rust translation of the Python example by opening a PR.
52
// --8<-- [end:list-entropy]
53
54
// --8<-- [start:weather_by_day]
55
// Contribute the Rust translation of the Python example by opening a PR.
56
// --8<-- [end:weather_by_day]
57
58
// --8<-- [start:rank_pct]
59
// Contribute the Rust translation of the Python example by opening a PR.
60
// --8<-- [end:rank_pct]
61
62
// --8<-- [start:array-overview]
63
// Contribute the Rust translation of the Python example by opening a PR.
64
// --8<-- [end:array-overview]
65
66
Ok(())
67
}
68
69