DataFrame.le
Get Less than or Equal to of DataFrame and other, element-wise (binary operator eq).
Parameters
Type
Description
Default
Examples
Comparing a DataFrame with a scalar value:
const dfd = require("danfojs-node")
let data = {"Col1": [10, 45, 56, 10],
"Col2": [23, 20, 10, 24]}
let df = new dfd.DataFrame(data)
let df_rep = df.le(20)
df_rep.print()╔═══╤═══════════════════╤═══════════════════╗
║ │ Col1 │ Col2 ║
╟───┼───────────────────┼───────────────────╢
║ 0 │ true │ false ║
╟───┼───────────────────┼───────────────────╢
║ 1 │ false │ true ║
╟───┼───────────────────┼───────────────────╢
║ 2 │ false │ true ║
╟───┼───────────────────┼───────────────────╢
║ 3 │ true │ false ║
╚═══╧═══════════════════╧═══════════════════╝Comparing a DataFrame with a Series along the column axis:
Comparing a DataFrame with another DataFrame
Comparing a DataFrame with an Array
Last updated