Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add dropna option to RawRowsAPI.insert_dataframe #1789

Merged
merged 8 commits into from
May 31, 2024

Conversation

haakonvt
Copy link
Contributor

[7.44.2] - 2024-05-30

Added

  • RawRowsAPI.insert_dataframe now has a new dropna setting (defaulting to True, as this would otherwise raise later).

Checklist:

  • Tests added/updated.
  • Documentation updated. Documentation is generated from docstrings - these must be updated according to your change.
    If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.
  • Changelog updated in CHANGELOG.md.
  • Version bumped. If triggering a new release is desired, bump the version number in _version.py and pyproject.toml per semantic versioning.

@haakonvt haakonvt requested review from a team as code owners May 30, 2024 14:47
@haakonvt haakonvt requested review from arnels and removed request for a team May 30, 2024 14:47
Copy link

codecov bot commented May 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.01%. Comparing base (bb76e95) to head (83092d1).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1789      +/-   ##
==========================================
+ Coverage   93.00%   93.01%   +0.01%     
==========================================
  Files         121      121              
  Lines       17673    17688      +15     
==========================================
+ Hits        16436    16453      +17     
+ Misses       1237     1235       -2     
Files Coverage Δ
cognite/client/_api/raw.py 88.44% <100.00%> (+0.82%) ⬆️
cognite/client/_version.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Copy link
Contributor

@doctrino doctrino left a comment

Choose a reason for hiding this comment

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

Great quality of life improvement.

CHANGELOG.md Outdated
## [7.44.1] - 2024-05-24
### Added
- Missing parameter `timeout` to `client.transformations.preview`.
- Missing parameter `timeout` to `client.transformations.preview`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Time for an end-of-line linter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it will screw up a couple of the tests that rely on output matching. This change here is done automatically by my editor 😅

"f": [100, 200, 300],
}
)
df.columns = ["a", "b", "a", "c", "a", "b"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not set columns above with the data?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Notice the duplicates 😉

@haakonvt haakonvt force-pushed the add-raw-rows-insert-dropna branch from 4db0b81 to 243f314 Compare May 31, 2024 14:57
@haakonvt haakonvt enabled auto-merge (squash) May 31, 2024 14:59
@haakonvt haakonvt merged commit 32448e7 into master May 31, 2024
11 checks passed
@haakonvt haakonvt deleted the add-raw-rows-insert-dropna branch May 31, 2024 15:49
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