Andrea Borruso
120e977c1e
Update subs.go ( #1868 )
...
If I read “Convert all field names,” I think the verb acts on the field names. I think it would be better to write “Convert all fields.”
2025-08-20 10:11:34 -07:00
John Kerl
e7fe363d9a
mlr sort -b feature (#1833 )
...
* `mlr sort -b` feature
* mlr regtest -p test/cases/cli-help && make dev
2025-07-11 12:41:04 -04:00
Balki
e67bdef98e
cut: Consider -o flag even when using regexes with -r ( #1823 )
...
* cut: Consider `-o` flag even when using regexes with `-r`
* update doc for cut -r flag
2025-07-03 18:54:09 -04:00
Christian G. Warden
df73ad8ec0
Add surv Verb to Estimate a Survival Curve ( #1788 )
...
Add a surv verb to estimate a survival curve using Kaplan-Meier. It
requires duration and status (event or censored) columns, and outputs
each distinct duration and corresponding probability of survival.
2025-05-15 18:17:08 -04:00
John Kerl
9f77bbe096
Add help strings for -a/-r in sub/gsub/ssub ( #1721 )
...
* Help strings for `-a`/`-r` in `sub`/`gsub`/`ssub`
* `mlr regtest -p test/cases/cli-help` to update expected outputs
* artifacts from `make dev`
2024-11-23 10:13:36 -05:00
John Kerl
5424e753a4
Static-check fixes from @lespea #1657 , batch 8/n ( #1710 )
2024-10-27 12:16:49 -04:00
John Kerl
8c791f5466
Static-check fixes from @lespea #1657 , batch 4/n ( #1706 )
...
* Static-check fixes from @lespea #1657 , batch 2/n
* Static-check fixes from @lespea #1657 , batch 3/n
* Static-check fixes from @lespea #1657 , batch 4/n
2024-10-27 12:00:25 -04:00
John Kerl
04a9b9decd
Static-check fixes from @lespea #1657 , batch 3/n ( #1705 )
...
* Static-check fixes from @lespea #1657 , batch 2/n
* Static-check fixes from @lespea #1657 , batch 3/n
2024-10-27 11:55:38 -04:00
John Kerl
cc8a3c4b4e
Static-check fixes from @lespea #1657 , batch 2/n ( #1704 )
2024-10-27 11:50:15 -04:00
John Kerl
047cb4bc28
Static-check fixes from @lespea #1657 , batch 1/n ( #1703 )
2024-10-27 11:42:43 -04:00
John Kerl
05aa16cfcf
Join docs wrong link ( #1695 )
...
* Fix join-docs link in online help
* run `make dev` and commit the artifacts
2024-10-17 09:11:03 -04:00
Stephen Kitt
7a0320fc27
Typo fix: programmatically ( #1679 )
...
Signed-off-by: Stephen Kitt <steve@sk2.org>
2024-10-06 17:30:12 -04:00
John Kerl
31d6164181
Fix 1668 error-source ( #1672 )
...
* Fix 1668 error-source
* run `make dev`
2024-10-05 09:25:47 -04:00
John Kerl
4a2f349289
Update source material for #1665 ( #1666 )
...
* Fix source info for #1665
* run `make dev`
2024-10-02 08:46:27 -04:00
Adam Lesperance
085e831668
The package version must match the major tag version ( #1654 )
...
* Update package version
* Update makefile targets
* Update readme packages
* Remaining old packages via rg/sd
2024-09-20 12:10:11 -04:00
John Kerl
73e2117b43
Misc. codespell findings ( #1628 )
2024-08-25 17:40:57 -04:00
John Kerl
6520bf4758
Bash process substitution not working with put -f ( #1583 )
...
* Bash process substitution not working with `put -f`
* run `make dev`
2024-06-08 20:37:31 -04:00
John Kerl
202a79d0e2
On-line help for mlr summary --transpose ( #1581 )
...
* On-line help for `mlr summary --transpose`
* run `make dev`
2024-06-08 13:37:07 -04:00
Andrew Onyshchuk
66abef6704
fraction bugfix ( #1579 )
2024-06-06 09:04:25 -04:00
John Kerl
16ab199194
Add mad accumulator for stats1 DSL function ( #1561 )
...
* Add `mad` accumulator for `stats1` DSL function
* regression files
* make dev output
2024-05-11 15:55:27 -04:00
forcedebug
0e30619966
Fix mismatched method names in comments ( #1549 )
...
Signed-off-by: forcedebug <forcedebug@outlook.com>
2024-04-22 12:16:30 -04:00
John Kerl
83c44e6d74
Add descriptions for put and filter verbs ( #1529 )
...
* Add more info in online help about what put/filter do
* `make dev` artifacts
2024-03-16 17:09:01 -04:00
John Kerl
f5eaf290cf
mlr sparsify ( #1498 )
...
* mlr sparsify
* regression-test cases
* typofix
* Remove mods due to processor-architecture change
2024-02-18 10:56:26 -05:00
John Kerl
e5ec9f67bd
Implement all/by-regex field selection (-a/-r) for mlr sub, gsub, and ssub ( #1480 )
...
* Code-dedupe `sub`, `gsub`, and `ssub` verbs
* More dedupe
* Start with -a
* Implement -r
* unit-test cases
* Windows command-line parsing
2024-01-23 17:18:13 -05:00
John Kerl
81d11365a0
mlr reorder with regex support [WIP] (#1473 )
...
* mlr reorder with regex support for field-name selection
* neaten
* -r -b/-a; unit-test cases
2024-01-21 15:17:33 -05:00
John Kerl
e3b98cd621
On-line help info for mlr join --lk "" ( #1458 )
...
* Doc info for `mlr join --lk ""`
* make dev output
2023-12-24 12:43:26 -05:00
John Kerl
0e3a54ed68
Implement mlr uniq -x ( #1457 )
...
* mlr uniq -x
* unit-test cases
* make dev
2023-12-23 16:20:11 -05:00
John Kerl
1ae670fd4a
Rename internal regex functions ( #1446 )
2023-12-17 12:46:28 -05:00
Eng Zer Jun
4b34f80f6a
transformers/grep: avoid allocations with (*regexp.Regexp).MatchString ( #1416 )
...
We should use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` when matching string to avoid
unnecessary `[]byte` conversions and reduce allocations.
Example benchmark:
var grepRegex = regexp.MustCompile("foo.*")
func BenchmarkMatch(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := grepRegex.Match([]byte("foo bar baz")); !match {
b.Fail()
}
}
}
func BenchmarkMatchString(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := grepRegex.MatchString("foo bar baz"); !match {
b.Fail()
}
}
}
goos: linux
goarch: amd64
pkg: github.com/johnkerl/miller/pkg/transformers
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16 5700908 210.3 ns/op 16 B/op 1 allocs/op
BenchmarkMatchString-16 8006731 156.4 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/johnkerl/miller/pkg/transformers 2.857s
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-27 09:15:12 -04:00
John Kerl
268a96d002
Export library code in pkg/ ( #1391 )
...
* Export library code in `pkg/`
* new doc page
2023-09-10 17:15:13 -04:00