Add `/models/statistics`
Adds:
-
/models/statistics -
/models/statistics/spaces -
/models/statistics/spaces/byids
TODO:
- [x] docstrings
- [ ] tests
- [x] add mocks
- [ ] wait until this PR is merged: https://github.com/cognitedata/service-contracts/pull/2499
Nice! Let's hold off on this until we publish the API though. I don't think we need to break anything, but I'm not 100% sure. Let's do a sync next week.
How pandas viz in notebooks:
(could potentially be nicer? a lot is hidden in 'instances)
The other I'm pretty much happy with:
Codecov Report
Attention: Patch coverage is 98.00000% with 2 lines in your changes missing coverage. Please review.
Project coverage is 90.76%. Comparing base (
ca14da8) to head (90ca0c3). Report is 1 commits behind head on master.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| ...te/client/data_classes/data_modeling/statistics.py | 96.96% | 2 Missing :warning: |
Additional details and impacted files
@@ Coverage Diff @@
## master #2095 +/- ##
==========================================
+ Coverage 90.73% 90.76% +0.02%
==========================================
Files 164 166 +2
Lines 24448 24547 +99
==========================================
+ Hits 22184 22280 +96
- Misses 2264 2267 +3
| Files with missing lines | Coverage Δ | |
|---|---|---|
| cognite/client/_api/data_modeling/__init__.py | 100.00% <100.00%> (ø) |
|
| cognite/client/_api/data_modeling/statistics.py | 100.00% <100.00%> (ø) |
|
| cognite/client/_version.py | 100.00% <100.00%> (ø) |
|
| cognite/client/testing.py | 100.00% <100.00%> (ø) |
|
| ...te/client/data_classes/data_modeling/statistics.py | 96.96% <96.96%> (ø) |
:rocket: New features to boost your workflow:
- :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
- :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.
/gemini review
/gemini review
/gemini review
/gemini review
🦄