mirror of
https://github.com/nushell/nushell.git
synced 2025-06-20 18:08:36 +02:00
fixing incomplete schema examples
This commit is contained in:
parent
b1c4fdfe1d
commit
51a05b9aa1
@ -206,7 +206,7 @@ impl PluginCommand for ToDataFrame {
|
|||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Use a predefined schama",
|
description: "Use a predefined schama",
|
||||||
example: r#"let schema = {a: str, b: str}; [[a b]; [1 "foo"] [2 "bar"]] | polars into-df -s {a: str, b: str}"#,
|
example: r#"let schema = {a: str, b: str}; [[a b]; [1 "foo"] [2 "bar"]] | polars into-df -s $schema"#,
|
||||||
result: Some(NuDataFrame::try_from_series_vec(vec![
|
result: Some(NuDataFrame::try_from_series_vec(vec![
|
||||||
Series::new("a".into(), ["1", "2"]),
|
Series::new("a".into(), ["1", "2"]),
|
||||||
Series::new("b".into(), ["foo", "bar"]),
|
Series::new("b".into(), ["foo", "bar"]),
|
||||||
|
@ -50,7 +50,7 @@ impl PluginCommand for ToLazyFrame {
|
|||||||
},
|
},
|
||||||
Example {
|
Example {
|
||||||
description: "Use a predefined schama",
|
description: "Use a predefined schama",
|
||||||
example: r#"let schema = {a: str, b: str}; [[a b]; [1 "foo"] [2 "bar"]] | polars into-lazy -s {a: str, b: str}"#,
|
example: r#"let schema = {a: str, b: str}; [[a b]; [1 "foo"] [2 "bar"]] | polars into-lazy -s $schema"#,
|
||||||
result: Some(NuDataFrame::try_from_series_vec(vec![
|
result: Some(NuDataFrame::try_from_series_vec(vec![
|
||||||
Series::new("a".into(), ["1", "2"]),
|
Series::new("a".into(), ["1", "2"]),
|
||||||
Series::new("b".into(), ["foo", "bar"]),
|
Series::new("b".into(), ["foo", "bar"]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user