Skip to content

TimeDelta sum #1029

@oplatek

Description

@oplatek

Hi!

Thank you for csvkit.
I am wondering if it would be possible to add the "sum feature" for TimeDelta type?

How would I use it?

$ csvstat -c Duration --unique test.csv
2

$ csvstat -c Duration --sum test.csv
None   # Here I would expect 4:06:00 instead of None -- sum of the time delta times

$ cat test.csv
Duration
01:16:00
02:50:00

I am happy to submit PR.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions