Skip to content

Document from csv/from tsv reading every field as a string - #2301

Merged
fdncred merged 1 commit into
nushell:mainfrom
dxts:csv-infer-opt-in
Nov 25, 2026
Merged

fdncred merged 1 commit into
nushell:mainfrom
dxts:csv-infer-opt-in

Conversation

@dxts

@dxts dxts commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Documents the change in nushell/nushell#19651 (merged, fixes nushell/nushell#13514): from csv and from tsv now read every field as a string, --infer turns numeric fields into ints and floats, and --no-infer is deprecated.

  • book/working_with_strings.md: rewrote the intro of "Options for from csv and from tsv" around the string default, show --infer instead of --no-infer, point at into int / into float / detect type for single columns, tie the --trim note to --infer, and update the --flexible example output.
  • cookbook/external_completers.md: dropped --no-infer from the fish completer snippets and the bullet explaining it; it is the default now and would warn on every completion.
  • lang-guide/chapters/matrices.md: from csv no longer needs --no-infer for string cells.

Every # => output was produced by a build of the merged change. commands/docs/from_csv.md and from_tsv.md are generated from help at release time, so they are not edited here.

This should land with the release that ships nushell/nushell#19651 (0.118), since the site tracks released behaviour.

Follows nushell/nushell's change that makes type inference opt-in via
`--infer` and deprecates `--no-infer` (nushell/nushell#13514).

- working_with_strings: rewrite the "Options for from csv and from tsv"
  intro around the new default, show `--infer` instead of `--no-infer`,
  point at `into int` / `into float` / `detect type` for single columns,
  tie the `--trim` note to `--infer`, and update the `--flexible` output.
- external_completers: drop `--no-infer` from the fish completer snippets
  and the bullet explaining it.
- matrices: `from csv` no longer needs `--no-infer` for string cells.
@fdncred
fdncred merged commit 0b69a09 into nushell:main Nov 25, 2026
2 checks passed
@fdncred

fdncred commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Thanks

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.

Disable type inference in from csv by default

2 participants