MCPcopy Create free account

hub / github.com/javascriptdata/danfojs / functions

Functions561 in github.com/javascriptdata/danfojs

Methodgroupby
* Groupby * @params col a list of column * @returns Groupby * @example * let data = [ [ 1, 2, 3 ], [ 4, 5, 6 ], [ 20, 30, 40 ], [
src/danfojs-base/core/frame.ts:3353
Methodgroups
* obtaind the internal group data * @returns {[keys: string]: {}}
src/danfojs-base/aggregators/groupby.ts:608
Methodgt
* Returns "greater than" of dataframe and other. * @param other DataFrame, Series, Array or Scalar number to compare with * @param options.a
src/danfojs-base/core/frame.ts:1133
Methodgt
* Returns Greater than of series and other. Supports element wise operations * @param other Series, number or Array of numbers to compare again
src/danfojs-base/core/series.ts:1343
Methodgt
(other: DataFrame | Series | number, options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:272
Methodhead
* Returns the first n values in a DataFrame * @param rows The number of rows to return * @example * ``` * const df = new DataF
src/danfojs-base/core/frame.ts:523
Methodhead
* Returns the first n values in a Series * @param rows The number of rows to return * @example * ``` * const sf = new Series([
src/danfojs-base/core/series.ts:157
Methodhead
(rows?: number)
src/danfojs-base/shared/types.ts:210
Methodhist
* Plot Series or DataFrame as histogram. * Uses Plotly library as backend, so supports Plotly's configuration parameters * @param plotConfig
src/danfojs-base/plotting/index.ts:87
Methodhist
(plotConfig?: PlotConfigObject)
src/danfojs-base/shared/types.ts:373
Methodhours
* Returns the hour of the day, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "201
src/danfojs-base/core/datetime.ts:192
Methodiat
* Access a single value for a row/column pair by integer position. * Similar to {@link iloc}, in that both provide integer-based lookups. *
src/danfojs-base/core/frame.ts:3382
Methodiat
* Access a single value for a row index. * Similar to iloc, in that both provide index-based lookups. * Use iat if you only need to get or
src/danfojs-base/core/series.ts:2150
Methodiat
(row: number, column: number)
src/danfojs-base/shared/types.ts:329
Methodiloc
(options: { rows?: Array<string | number>, columns?: Array<string | number>
src/danfojs-base/shared/types.ts:205
Methodindex
* Returns the indices of the NDFrame
src/danfojs-base/core/generic.ts:266
Methodindex
()
src/danfojs-base/shared/types.ts:97
MethodinverseTransform
* Inverse transform the data using the fitted scaler * @param data Array, Tensor, DataFrame or Series object * @returns Array, Tensor, DataF
src/danfojs-base/transformers/scalers/standard.scaler.ts:130
MethodinverseTransform
* Inverse transform the data using the fitted scaler * @param data Array, Tensor, DataFrame or Series object * @returns Array, Tensor, DataF
src/danfojs-base/transformers/scalers/min.max.scaler.ts:135
MethodisLowMemoryMode
()
src/danfojs-base/shared/config.ts:82
MethodisNa
* Return a boolean, same-sized object indicating where elements are empty (NaN, undefined, null). * NaN, undefined and null values gets mapped to
src/danfojs-base/core/frame.ts:2039
MethodisNa
()
src/danfojs-base/shared/types.ts:267
MethodisNodeEnv
* Checks if current environment is Node
src/danfojs-base/shared/utils.ts:671
Methodle
* Returns "less than or equal to" of dataframe and other. * @param other DataFrame, Series, Array or Scalar number to compare with * @param op
src/danfojs-base/core/frame.ts:1241
Methodle
* Returns Less than or Equal to of series and other. Supports element wise operations * @param other Series, number or Array of numbers to comp
src/danfojs-base/core/series.ts:1367
Methodle
(other: DataFrame | Series | number, options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:273
Methodline
* Plot Series or DataFrame as lines. * Uses Plotly library as backend, so supports Plotly's configuration parameters * @param plotConfig con
src/danfojs-base/plotting/index.ts:57
Methodline
(plotConfig?: PlotConfigObject)
src/danfojs-base/shared/types.ts:370
Methodloc
* Access a group of rows by label(s) or a boolean array. * ``loc`` is primarily label based, but may also be used with a boolean array. *
src/danfojs-base/core/series.ts:143
Methodlt
* Get Less than of dataframe and other, element-wise (binary operator lt). * @param other DataFrame, Series, Array or Scalar number to compare wi
src/danfojs-base/core/frame.ts:1097
Methodlt
* Returns less than of series and other. Supports element wise operations * @param other Series, number, or Array of numbers to compare against
src/danfojs-base/core/series.ts:1320
Methodlt
(other: DataFrame | Series | number, options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:271
Methodmap
(callable: mapParam, options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:999
Methodmax
* Return maximum of values in a DataFrame across specified axis. * @param options.axis 0 or 1. If 0, compute the maximum column-wise, if 1, row-w
src/danfojs-base/core/frame.ts:978
Methodmax
(options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:226
Methodmax
* Obtain the max value of columns for each group * @returns DataFrame *
src/danfojs-base/aggregators/groupby.ts:507
Methodmaximum
* Return maximum of series and other. * @param other Series, number or Array of numbers to check against * @example * ``` * co
src/danfojs-base/core/series.ts:627
Methodmean
* Return mean of DataFrame across specified axis. * @param options.axis 0 or 1. If 0, compute the mean column-wise, if 1, row-wise. Defaults to 1
src/danfojs-base/core/frame.ts:830
Methodmean
(options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:222
Methodmean
* Obtain the mean of columns for each group * @returns DataFrame
src/danfojs-base/aggregators/groupby.ts:465
Methodmedian
* Return median of DataFrame across specified axis. * @param options.axis 0 or 1. If 0, compute the median column-wise, if 1, row-wise. Defaults
src/danfojs-base/core/frame.ts:859
Methodmedian
(options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:223
Methodmin
* Return minimum of values in a DataFrame across specified axis. * @param options.axis 0 or 1. If 0, compute the minimum value column-wise, if 1,
src/danfojs-base/core/frame.ts:937
Methodmin
(options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:225
Methodmin
* Obtain the min of columns for each group * @returns DataFrame
src/danfojs-base/aggregators/groupby.ts:515
Methodminimum
* Return minimum of series and other. * @param other Series, number of Array of numbers to check against * @example * ``` * co
src/danfojs-base/core/series.ts:658
Methodminutes
* Returns the minute of the day, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "2
src/danfojs-base/core/datetime.ts:234
Methodmod
(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/core/frame.ts:800
Methodmod
(other: Series | number | Array<number>, options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:456
Methodmod
(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/shared/types.ts:219
Methodmode
* Return mode of DataFrame across specified axis. * @param options.axis 0 or 1. If 0, compute the mode column-wise, if 1, row-wise. Defaults to 1
src/danfojs-base/core/frame.ts:895
Methodmode
* Returns the modal value of elements in Series * @example * ``` * const sf = new Series([1, 2, 3, 4, 4, 5, 6]); * console.log
src/danfojs-base/core/series.ts:530
Methodmode
(options?: { axis?: 0 | 1, keep?: number })
src/danfojs-base/shared/types.ts:224
Methodmonth
* Returns the month, in local time. * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "2019-01-01"
src/danfojs-base/core/datetime.ts:62
MethodmonthName
* Returns the name of the month, in local time * @example * ``` * import { Series } from "danfojs-node" * const data = [ * "
src/danfojs-base/core/datetime.ts:127
Methodmul
(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/core/frame.ts:681
Methodmul
(other: Series | number | Array<number>, options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:348
Methodmul
(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/shared/types.ts:215
MethodnClasses
* Get the number of classes. * @returns number of classes. * @example * ``` * const encoder = new LabelEncoder() * encoder.fi
src/danfojs-base/transformers/encoders/label.encoder.ts:158
MethodnUnique
* Return the number of unique elements in a column, across the specified axis. * To get the values use `.unique()` instead. * @param axis T
src/danfojs-base/core/frame.ts:2909
MethodnUnique
* Return the number of unique elements in a Series * @example * ``` * const sf = new Series([1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 5, 6]);
src/danfojs-base/core/series.ts:1097
MethodnUnique
(axis: 0 | 1)
src/danfojs-base/shared/types.ts:293
Methodndim
* Returns the dimension of the data. Series have a dimension of 1, * while DataFrames have a dimension of 2.
src/danfojs-base/core/generic.ts:230
Methodndim
()
src/danfojs-base/shared/types.ts:95
Methodne
* Returns "not equal to" of dataframe and other. * @param other DataFrame, Series, Array or Scalar number to compare with * @param options.a
src/danfojs-base/core/frame.ts:1205
Methodne
* Returns Not Equal to of series and other. Supports element wise operations * @param other Series, number or Array of numbers to compare agai
src/danfojs-base/core/series.ts:1414
Methodne
(other: DataFrame | Series | number, options?: { axis?: 0 | 1 })
src/danfojs-base/shared/types.ts:275
Methodngroups
* obtain the total number of groups * @returns number
src/danfojs-base/aggregators/groupby.ts:599
Methodor
* Returns the logical OR between Series and other. Supports element wise operations and broadcasting. * @param other Series, Scalar, Array of Sc
src/danfojs-base/core/series.ts:2066
MethodpctChange
(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/core/frame.ts:1393
Methodpie
* Plot Series or DataFrame as pie. * Uses Plotly library as backend, so supports Plotly's configuration parameters * @param plotConfig confi
src/danfojs-base/plotting/index.ts:97
Methodpie
(plotConfig?: PlotConfigObject)
src/danfojs-base/shared/types.ts:374
Methodplot
* Exposes functions for creating charts from a DataFrame. * Charts are created using the Plotly.js library, so all Plotly's configuration parame
src/danfojs-base/core/frame.ts:3416
Methodplot
* Exposes functions for creating charts from a DataFrame. * Charts are created using the Plotly.js library, so all Plotly's configuration parame
src/danfojs-base/core/series.ts:2182
Methodplot
(divId: string)
src/danfojs-base/shared/types.ts:186
Methodplot
(divId: string)
src/danfojs-base/shared/types.ts:331
Methodpow
(other: DataFrame | Series | number[] | number, options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/core/frame.ts:770
Methodpow
(other: Series | number | Array<number>, options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:428
Methodpow
(other: DataFrame | Series | number | number[], options?: { axis?: 0 | 1, inplace?: boolean })
src/danfojs-base/shared/types.ts:218
Methodprint
* Pretty prints a DataFrame or Series to the console
src/danfojs-base/core/generic.ts:507
Methodquery
(condition: Series | Array<boolean>, options?: { inplace?: boolean })
src/danfojs-base/core/frame.ts:3250
MethodrandNumberGenerator
* Generates n random numbers between start and end. * @param start * @param end * @param size
src/danfojs-base/shared/utils.ts:508
Methodrandi
(a: number, b: number)
src/danfojs-base/shared/utils.ts:511
Methodrecursive
(val: number, arr: Array<number>)
src/danfojs-base/shared/utils.ts:515
Methodrename
( mapper: { [index: string | number]: string | number }, options?: {
src/danfojs-base/core/frame.ts:2965
Methodreplace
( oldValue: number | string | boolean, newValue: number | string | boolean, options?:
src/danfojs-base/core/frame.ts:2752
Methodreplace
(searchValue = "", replaceValue = "", options?: { inplace?: boolean })
src/danfojs-base/core/strings.ts:434
Methodreplace
( oldValue: string | number | boolean, newValue: string | number | boolean, options?:
src/danfojs-base/core/series.ts:1532
Methodreplace
( oldValue: number | string | boolean, newValue: number | string | boolean, options?:
src/danfojs-base/shared/types.ts:277
MethodreplaceNanWithNull
* Replace NaN with null before tensor operations * @param arr
src/danfojs-base/shared/utils.ts:694
MethodresetIndex
(options?: { inplace?: boolean })
src/danfojs-base/core/frame.ts:2503
MethodresetIndex
(options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:933
MethodresetIndex
(options: { inplace?: boolean })
src/danfojs-base/shared/types.ts:237
Methodround
(dp: number = 1, options?: { inplace: boolean })
src/danfojs-base/core/frame.ts:1573
Methodround
(dp = 1, options?: { inplace?: boolean })
src/danfojs-base/core/series.ts:690
Methodround
* Round elements of an array or array of arrays to specified dp * @param arr The Array to round * @param dp The number of dp to round to
src/danfojs-base/shared/utils.ts:450
Methodround
(dp?: number, options?: { inplace: boolean })
src/danfojs-base/shared/types.ts:231
Methodsample
* Gets n number of random rows in a dataframe. Sample is reproducible if seed is provided. * @param num The number of rows to return. Default to
src/danfojs-base/core/frame.ts:578
Methodsample
* Returns specified number of random rows in a Series * @param num The number of rows to return * @param options.seed An integer specifying
src/danfojs-base/core/series.ts:212
Methodsample
(num: number, options?: { seed?: number })
src/danfojs-base/shared/types.ts:212
← previousnext →401–500 of 561, ranked by callers