You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Tyopescript compatible new column / generateSeris #144
The first option (withSeries) doesn't compile (see below)
The second option (generateSeries), doesn't result in a DataFrame with the correct type
(compilation error:
TS2322: Type '(df: IDataFrame<any, any>) => IDataFrame<any, any>' is not assignable to type 'ISeries<any, any> | SeriesSelectorFn<any, any, any>'. Type '(df: IDataFrame<any, any>) => IDataFrame<any, any>' is not assignable to type 'SeriesSelectorFn<any, any, any>'. Type 'IDataFrame<any, any>' is missing the following properties from type 'ISeries<any, any>': amountRange, proportionRange, percentRange, amountChange, and 24 more.
)
What's the typescript-way to add a new column based on the existing df?
Activity
ashleydavis commentedon May 29, 2022
Please submit example code so I can diagnose the error.