nushell/crates/nu-cmd-dataframe/src/dataframe/eager
Stefan Holderbach 4b301710d3
Convert more examples and tests to record! macro (#10840)
# Description
Use `record!` macro instead of defining two separate `vec!` for `cols`
and `vals` when appropriate.
This visually aligns the key with the value.
Further more you don't have to deal with the construction of `Record {
cols, vals }` so we can hide the implementation details in the future.

## State

Not covering all possible commands yet, also some tests/examples are
better expressed by creating cols and vals separately.

# User/Developer-Facing Changes
The examples and tests should read more natural. No relevant functional
change

# Bycatch

Where I noticed it I replaced usage of `Value` constructors with
`Span::test_data()` or `Span::unknown()` to the `Value::test_...`
constructors. This should make things more readable and also simplify
changes to the `Span` system in the future.
2023-10-28 14:52:31 +02:00
..
append.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
columns.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
drop_duplicates.rs allow tables to have annotations (#9613) 2023-07-07 11:06:09 +02:00
drop_nulls.rs allow tables to have annotations (#9613) 2023-07-07 11:06:09 +02:00
drop.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
dtypes.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
dummies.rs Dataframe support for small int types (#10828) 2023-10-24 21:25:21 -05:00
filter_with.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
first.rs Merged overloaded commands (#9860) 2023-07-31 07:34:12 -05:00
get.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
last.rs Merged overloaded commands (#9860) 2023-07-31 07:34:12 -05:00
list.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
melt.rs allow tables to have annotations (#9613) 2023-07-07 11:06:09 +02:00
mod.rs Expose polars avro support (#10019) 2023-08-15 20:31:49 -05:00
open.rs Allow for .parq file ending as alternative to .parquet (#10112) 2023-08-24 15:57:33 -05:00
query_df.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
rename.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
sample.rs Add long options for core and dataframes (#10619) 2023-10-06 18:55:29 +02:00
shape.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
slice.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
sql_context.rs Update polars to 0.33 (#10672) 2023-10-11 21:28:18 +02:00
sql_expr.rs Invert &Options to Option<&T> (#10315) 2023-09-13 07:00:58 +08:00
summary.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
take.rs Spanned Value step 1: span all value cases (#10042) 2023-08-25 08:48:05 +12:00
to_arrow.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
to_avro.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
to_csv.rs Add long options for core and dataframes (#10619) 2023-10-06 18:55:29 +02:00
to_df.rs Improve type hovers (#9515) 2023-06-29 05:19:48 +12:00
to_json_lines.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
to_nu.rs Convert more examples and tests to record! macro (#10840) 2023-10-28 14:52:31 +02:00
to_parquet.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00
with_column.rs Move Value to helpers, separate span call (#10121) 2023-09-03 07:27:29 -07:00