Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Change DataFrame validation location selection to integer-location #265

Merged
merged 1 commit into from
Jul 28, 2021

Conversation

NotRyan
Copy link
Contributor

@NotRyan NotRyan commented Jul 23, 2021

Resolves milvus-io/milvus#6677

Previously, Pandas dataframe validation iterated over the length of data present in a column, while making references to individual items by using the default location selection-by-index. This meant that validation would be successful when the dataframe index started from 0, but would cause errors when using sliced dataframes which started at a non-zero index, such as in milvus-io/milvus#6677

Switching to location selection-by-integer resolves this issue.

Signed-off-by: NotRyan ryan.chan@zilliz.com

@sre-ci-robot
Copy link

Welcome @NotRyan! It looks like this is your first PR to milvus-io/pymilvus-orm 🎉

@XuanYang-cn
Copy link
Contributor

@NotRyan Thanks for your first contribution 🎉

It seems the test action is unhappy about what you've changed. Could you help to fix the tests as well?

Signed-off-by: NotRyan <ryan.chan@zilliz.com>
@NotRyan
Copy link
Contributor Author

NotRyan commented Jul 23, 2021

Hi @XuanYang-cn, I've fixed the issue that @xiaocai2333 pointed out and the tests seem to pass now. Here's the test and coverage report from my local machine.
pytest report

@mergify mergify bot added the ci-passed label Jul 28, 2021
@XuanYang-cn
Copy link
Contributor

/approve
/assign @xiaocai2333

@xiaocai2333
Copy link
Contributor

/lgtm
/approve

@sre-ci-robot
Copy link

@xiaocai2333: changing LGTM is restricted to collaborators

In response to this:

/lgtm
/approve

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@czs007
Copy link
Contributor

czs007 commented Jul 28, 2021

/lgtm
/approve

@sre-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: czs007, NotRyan, xiaocai2333, XuanYang-cn

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@sre-ci-robot sre-ci-robot merged commit 66b378f into milvus-io:main Jul 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Insert into milvus in batches with pandas dataframe
5 participants