Skip to content

added tcutils functions#207

Merged
genmeblog merged 2 commits intoscicloj:masterfrom
behrica:addTCUtils
May 5, 2026
Merged

added tcutils functions#207
genmeblog merged 2 commits intoscicloj:masterfrom
behrica:addTCUtils

Conversation

@behrica
Copy link
Copy Markdown
Member

@behrica behrica commented Apr 12, 2026

adding functin from tcutils
https://github.com/scicloj/tcutils/tree/main

@behrica behrica marked this pull request as draft April 12, 2026 11:07
@behrica
Copy link
Copy Markdown
Member Author

behrica commented Apr 12, 2026

This is without the unit test.
please have a look in which ns I placed the different functions, and let me know If OK.

(I did regenerate already the API ns)

Then I add the tests accordingly

{new-column-name (rolling/last column-name)})))

;; TODO is this the same as the "cumsum" from operators ?
(defn cumsum-col
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might exist already as column operator, correct ?

(:import [java.text Normalizer Normalizer$Form]))

(defn to-kebab-case [string]
;; TODO there is a librray for this : https://github.com/clj-commons/camel-snake-kebab
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should I change and use csk library, assuming it does the same.

We probably have a transitive dependency to it already, but I can check

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, we have it already. So I suggest to use it.

Comment thread src/tablecloth/api.clj
maps of columns.
- `:parser-fn` -
- `keyword?` - all columns parsed to this datatype. For example:
v - `keyword?` - all columns parsed to this datatype. For example:
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change comes from dataset....

I guess you did not "regenerate" the code after updating to TMD 8.x, so you did not see it.

I made a PR for it, but not merged yet:
techascent/tech.ml.dataset#473

I guess we leave it in, until changed upstream.
It's not a syntax error

@behrica behrica requested a review from genmeblog April 12, 2026 11:13
@genmeblog
Copy link
Copy Markdown
Member

On general thing: some functions should operate also on the grouped dataset - so we need to implement it as well. We can do this later.

@behrica
Copy link
Copy Markdown
Member Author

behrica commented Apr 13, 2026

On general thing: some functions should operate also on the grouped dataset - so we need to implement it as well. We can do this later.

Ok, I did not think about it.

@behrica
Copy link
Copy Markdown
Member Author

behrica commented May 2, 2026

should we merge this ?

@genmeblog
Copy link
Copy Markdown
Member

Merging this. However we need to work on grouped versions and update documentation.

@genmeblog genmeblog marked this pull request as ready for review May 5, 2026 18:44
@genmeblog genmeblog merged commit 3206c8d into scicloj:master May 5, 2026
1 check passed
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