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

Update rename.md #1133

Closed
wants to merge 1 commit into from
Closed

Update rename.md #1133

wants to merge 1 commit into from

Conversation

brad-burch
Copy link

@brad-burch brad-burch commented Oct 31, 2023

Noticed the documentation example fails, which is probably a bug (it should probably be able to take a list or a record). But this example is functionally equivalent, except renaming the second column for clarity in targeting columns besides the first.

Noticed the documentation example fails, which is probably a bug (it should take a list<string> and a record).  But this example is functionally equivalent, except renaming the second column for clarity in targeting columns besides the first.
@fdncred
Copy link
Collaborator

fdncred commented Oct 31, 2023

I'm not following. This works

❯ [[a, b, c]; [1, 2, 3]] | rename --column { a: ham }
╭#┬ham┬b┬c╮
│0│  1│2│3│
╰─┴───┴─┴─╯

This does not work

[[a, b, c]; [1, 2, 3]] | rename --column [ b, ham ]

You must be using an older version of nushell. I believe it was recently changed.

@brad-burch
Copy link
Author

I apologize, on v0.85 and trying to learn NuShell and I love it! Updated to v0.86 and it is indeed fixed (you guys move fast). Also noticed you generate these, so I will look over in the Rust logic for these examples. Thank you!

@brad-burch brad-burch closed this Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants