Skip to content

New Release for Danfojs Node(v0.3.1) and Browser (0.3.1)

Compare
Choose a tag to compare
@risenW risenW released this 01 Oct 22:50
· 427 commits to master since this release

New Features

  • Ability to create empty frames
  • Flag for toggling between low/high memory mode
  • Inplace support for all mutating operations
  • Ability to set Configuration values on frame creation
  • Support boolean mask for subsetting with iloc and loc. E.g df.iloc({rows: df["count"].gt(5), columns: [0, 1]})
  • Update an existing column value via subsetting. E.g df["count"] = [1,3,4,5]
  • Add loc indexing support for Series
  • Add configuration support for formating DataFrame display in the console
  • New DataFrame applyMap function for element-wise apply function
  • and and or logical comparison support. E.g
df.loc({
      rows: df['Salary_in_1000'].gte(100)).and(df['Age'].gt(60))
})
  • read_csv now uses Papaparse and supports config values for headers, separator, etc.
  • to_csv , to_json and to_excel functions now support saving to local disk in Node and downloadable in the browser. Also, supports config parameters for output.
  • read_json now supports config values for headers, authentication, separator, etc.
  • read_excel now uses XLSX parser, hence supports all XLSX config options.
  • DataFrame query function now accepts boolean masks with single or multiple conditions. E.g
df.query({
  rows: df['Salary_in_1000'].gte(100)).and(df['Age'].gt(60)) 
})

Bug Fixes

  • Column data not being updated when mutating internal data array
  • Str class error for non-string type
  • Better error message
  • Fix support for all JS Date format
  • Fix loc slicing bug for row index with string labels
  • DataFrame apply function now works only across a specified axis

Contributors

@risenW