Skip to content
This repository has been archived by the owner on Jul 16, 2024. It is now read-only.

Allow pass column to plcontainer_apply #229

Merged
merged 3 commits into from
Dec 27, 2023
Merged

Conversation

ruxuez
Copy link
Contributor

@ruxuez ruxuez commented Dec 26, 2023

This PR allows to pass specific columns when using
plcontainer_apply.

@ruxuez ruxuez changed the base branch from feat_plcontainer to main December 26, 2023 13:41
@ruxuez ruxuez requested a review from xuebinsu December 26, 2023 13:44
@xuebinsu xuebinsu changed the base branch from main to feat_plcontainer December 27, 2023 01:35
Comment on lines 122 to 126
"*"
if (
len(input_args) == 0
or (len(input_args) == 1 and isinstance(input_args[0], DataFrame))
)
Copy link
Contributor

@xuebinsu xuebinsu Dec 27, 2023

Choose a reason for hiding this comment

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

We might not need to support those cases. I think the else branch is general enough.

When length is 0, we'd better raise an exception to disallow it, since in this case no data will be retrieved. This is probably not what user would expect.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Got it, will change it to exception

@ruxuez ruxuez requested a review from xuebinsu December 27, 2023 08:58
@ruxuez ruxuez merged commit 67268fb into feat_plcontainer Dec 27, 2023
@ruxuez ruxuez deleted the feat_plc_column branch December 27, 2023 09:04
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.

3 participants