Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs for polars related commands #1394

Merged
merged 1 commit into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions commands/docs/dfr_datepart.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ Creates an expression to capture multiple date parts
(dfr col datetime | dfr datepart minute | dfr as datetime_minute ),
(dfr col datetime | dfr datepart second | dfr as datetime_second ),
(dfr col datetime | dfr datepart nanosecond | dfr as datetime_ns ) ]
╭─────┬──────────────────────────────────────────────────┬───────────────┬────────────────┬──────────────────┬──────╮
# │ datetime datetime_year datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ ...
├─────┼──────────────────────────────────────────────────┼───────────────┼────────────────┼──────────────────┼──────┤
0 │ 2 years ago 2021 │ 12 30 1 2 │ ...
╰─────┴──────────────────────────────────────────────────┴───────────────┴────────────────┴──────────────────┴──────╯
╭───┬──────────────────────────────────────────────────────────┬───────────────┬────────────────┬─────────────────┬─────────────╮
│ # │ datetime datetime_year datetime_month │ datetime_day │ datetime_hour │ datetime_minute │ datetime_second │ datetime_ns
├───┼──────────────────────────────────────────────────────────┼───────────────┼────────────────┼─────────────────┼─────────────┤
│ 0 │ 2 years ago 2021 │ 12 │ 30 1 2 3 │ 123456789
╰───┴──────────────────────────────────────────────────────────┴───────────────┴────────────────┴─────────────────┴─────────────╯

```
11 changes: 5 additions & 6 deletions commands/docs/from_ics.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,10 @@ Converts ics formatted string to table
```nu
> 'BEGIN:VCALENDAR
END:VCALENDAR' | from ics
╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬───────────╮
│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ timezones │
├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼───────────┤
│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 │
│ │ │ │ │ │ │ │ items] │
╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴───────────╯
╭───┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────┬────────────────╮
│ # │ properties │ events │ alarms │ to-Dos │ journals │ free-busys │ timezones │
├───┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┼────────────────┤
│ 0 │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │ [list 0 items] │
╰───┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────┴────────────────╯

```
2 changes: 1 addition & 1 deletion commands/docs/from_msgpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Read a table from MessagePack
│ # │ event_name │ time │
├───┼──────────────────────┼──────────────┤
│ 0 │ Apollo 11 Landing │ 54 years ago │
│ 1 │ Nushell first commit │ 4 years ago │
│ 1 │ Nushell first commit │ 5 years ago │
╰───┴──────────────────────┴──────────────╯

```
Expand Down
12 changes: 6 additions & 6 deletions commands/docs/histogram.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ Compute a histogram for the types of files, with frequency column named freq
Compute a histogram for a list of numbers
```nu
> [1 2 1] | histogram
╭───┬───────┬───────┬───────────┬─────────────┬────────────────────────────────────────────────────────────────────╮
# │ value │ count │ quantile │ percentage │ frequency │
├───┼───────┼───────┼───────────┼─────────────┼────────────────────────────────────────────────────────────────────┤
0 │ 1 │ 2 │ 0.67 │ 66.67% │ ****************************************************************** │
1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │
╰───┴───────┴───────┴───────────┴─────────────┴────────────────────────────────────────────────────────────────────╯
╭───┬───────┬───────┬──────────────────────┬────────────────────────────────────────────────────────────────────╮
│ # │ value │ count │ quantile │ percentage │ frequency │
├───┼───────┼───────┼──────────────────────┼────────────────────────────────────────────────────────────────────┤
│ 0 │ 1 │ 2 │ 0.67 │ 66.67% │ ****************************************************************** │
│ 1 │ 2 │ 1 │ 0.33 │ 33.33% │ ********************************* │
╰───┴───────┴───────┴──────────────────────┴────────────────────────────────────────────────────────────────────╯

```

Expand Down
Loading
Loading