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

[BUG] Definitions for filter and where functions missing boolean option #135

Open
ajdaling opened this issue Nov 24, 2022 · 0 comments
Open
Labels

Comments

@ajdaling
Copy link

Typings for filter and where functions are missing boolean option for condition. Using these functions as described in the documentation:

df.filter(row => row.get('column1') >= 3)

throws the following TS error: Type 'boolean' is not assignable to type 'DataFrame | Record<string, any>'.ts(2322)

Function definitions need to be updated to:
where(condition: (row: any) => DataFrame | Record<string, any> | boolean): DataFrame;
filter(condition: (row: any) => DataFrame | Record<string, any> | boolean): DataFrame;

@ajdaling ajdaling added the bug label Nov 24, 2022
@ajdaling ajdaling changed the title [BUG] [BUG] Definitions for filter and where functions missing boolean option Nov 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant