DF class

Utility functions for creating and manipulating data structures

Constructors

DF()

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

concat<T>(List<Series<T>> seriesList, {bool ignoreIndex = false}) → Series<T>
Concatenates multiple Series into one
concatDataFrames(List<DataFrame> dataFrames, {bool ignoreIndex = false, int axis = 0}) → DataFrame
Concatenates multiple DataFrames
dataFrame(Map<String, List> data, {List<String>? index}) → DataFrame
Creates a DataFrame from a map of columns
dataFrameFromRecords(List<Map<String, dynamic>> records, {List<String>? index}) → DataFrame
Creates a DataFrame from a list of records
dateRange(String start, String end, {String freq = 'D'}) → Series<String>
Creates a Series of dates
full<T>(int length, T value, {List<String>? index}) → Series<T>
Creates a Series filled with a constant value
merge(DataFrame left, DataFrame right, {required String on, String how = 'inner'}) → DataFrame
Merges two DataFrames on a common column
ones(int length, {List<String>? index}) → Series<num>
Creates a Series of ones
rand(int length, {double min = 0.0, double max = 1.0, int? seed}) → Series<double>
Creates a Series with uniformly distributed random numbers
randn(int length, {double mean = 0.0, double std = 1.0, int? seed}) → Series<double>
Creates a Series with normally distributed random numbers
range(int start, int end, {int step = 1}) → Series<int>
Creates a range of integers as a Series
readCsv(String filePath, {String separator = ',', bool hasHeader = true, List<String>? columnNames, Map<String, Type>? dtypes}) → Future<DataFrame>
Reads a CSV file
readJson(String filePath, {String orient = 'records'}) → Future<DataFrame>
Reads a JSON file
readUrl(String url, {String format = 'csv', Map<String, dynamic>? options}) → Future<DataFrame>
Reads data from a URL
sampleMixed({int rows = 100, int? seed}) → DataFrame
Creates sample mixed data
sampleNumeric({int rows = 100, int columns = 5, int? seed}) → DataFrame
Creates sample numeric data
series<T>(List<T> data, {List<String>? index}) → Series<T>
Creates a Series from a list of values
seriesFromMap<T>(Map<String, T> map) → Series<T>
Creates a Series from a map
timeSeries({DateTime? start, int days = 30, int? seed}) → DataFrame
Creates time series data
zeros(int length, {List<String>? index}) → Series<num>
Creates a Series of zeros