mirror of
https://github.com/nushell/nushell.git
synced 2025-08-18 14:11:23 +02:00
fixing incomplete schema examples
This commit is contained in:
@@ -206,7 +206,7 @@ impl PluginCommand for ToDataFrame {
|
||||
},
|
||||
Example {
|
||||
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![
|
||||
Series::new("a".into(), ["1", "2"]),
|
||||
Series::new("b".into(), ["foo", "bar"]),
|
||||
|
@@ -50,7 +50,7 @@ impl PluginCommand for ToLazyFrame {
|
||||
},
|
||||
Example {
|
||||
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![
|
||||
Series::new("a".into(), ["1", "2"]),
|
||||
Series::new("b".into(), ["foo", "bar"]),
|
||||
|
Reference in New Issue
Block a user