Closed letmaik closed 3 years ago
letmaik/md-table@685 aka 20210402.14 vs main ewma over 11 builds from 637 to 669
Hm... the Actions job fails due to DNS problems connecting to Cosmos DB and the DevOps job doesn't even trigger now. Oh well...
OK, so the build number is not really working yet, a bit hard to test locally, but I think it would be nice to have it since that's what's shown in the plots and what you see in CI.
Agreed!
pandas uses tabulate for markdown formatting and by default tabulate tries to interpret strings as numbers. This can only be disabled for all columns, at which point it also disables nice formatting for floats (reasonable number of decimals). I opened an issue (https://github.com/astanin/python-tabulate/issues/121) about that since it should be possible to disable parsing for specific columns. Let's wait a bit and see if the maintainer is open to the idea. If not, then we may have to manually truncate floats in the dataframe before calling the markdown formatter.
EDIT: Hm, the formatting looks fine here, but locally I get a lot of extra decimals. I have the same pandas and tabulate versions, weird.
Looking at the docstring, disable_numparse
actually does support specifying individual columns, so all good.
EDIT: oh dear... still not working as it should... sorry about the spam
OK, that was more fiddly than expected but it's all working now and ready to be merged.
It looks great, thank you!
It's sometimes useful to look at the raw data.