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

fix PandasDataFrameObject truthiness #8711

Merged
merged 5 commits into from Apr 17, 2024
Merged

fix PandasDataFrameObject truthiness #8711

merged 5 commits into from Apr 17, 2024

Conversation

abyesilyurt
Copy link
Contributor

Description

ObjectDiff[PandasDataFrameObject].non_empty_object property returns the following error without the fix: Truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()

	@property
	def non_empty_object(self) -> SyftObject | None:
        return self.low_obj or self.high_obj

Affected Dependencies

List any dependencies that are required for this change.

How has this been tested?

  • Describe the tests that you ran to verify your changes.
  • Provide instructions so we can reproduce.
  • List any relevant details for your test configuration.

Checklist

@abyesilyurt abyesilyurt merged commit f06fc9b into dev Apr 17, 2024
35 checks passed
@abyesilyurt abyesilyurt deleted the aziz/pandas_bool branch April 17, 2024 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants