dataframe v0.2.0 DataFrame

Functions to create and modify a Frame, a structure with a 2D table with information, indexes and columns

Summary

Functions

Returns a value located at the position indicated by an index name and column name

Returns a statistical description of the data in the frame

Reads the information from a CSV file. By default the first row is assumed to be the column names

Returns the information at the top of the frame. Defaults to 5 lines

Returns a value located at the position indicated by an index position and column position

Returns a slice of the data in the frame. Parameters are the ranges with positions in the index and column

Returns a slice of the data in the frame. Parameters are the ranges with names in the index and column

Creates a new Frame from a 2D table, It creates a numeric index and a numeric column array automatically

Creates a new Frame from a 2D table, and a column array. It creates a numeric index automatically

Creates a new Frame from a 2D table, an index and a column array

Sorts the data in the frame based on its index. By default the data is sorted in ascending order

Sorts the data in the frame based on a given column. By default the data is sorted in ascending order

Returns the information at the bottom of the frame. Defaults to 5 lines

Writes the information of the frame into a csv file. By default the column names are written also

Returns a Frame which data has been transposed

Functions

at(frame, index_name, column_name)

Returns a value located at the position indicated by an index name and column name.

describe(frame)

Returns a statistical description of the data in the frame

from_csv(filename)

Reads the information from a CSV file. By default the first row is assumed to be the column names.

head(frame, size \\ 5)

Returns the information at the top of the frame. Defaults to 5 lines.

iat(frame, index, column)

Returns a value located at the position indicated by an index position and column position.

iloc(frame, index, columns)

Returns a slice of the data in the frame. Parameters are the ranges with positions in the index and column

loc(frame, index_range, column_range)

Returns a slice of the data in the frame. Parameters are the ranges with names in the index and column

new(table)

Creates a new Frame from a 2D table, It creates a numeric index and a numeric column array automatically.

new(table, columns)

Creates a new Frame from a 2D table, and a column array. It creates a numeric index automatically.

new(table, columns, index)

Creates a new Frame from a 2D table, an index and a column array

sort_index(frame, ascending \\ true)

Sorts the data in the frame based on its index. By default the data is sorted in ascending order.

sort_values(frame, column_name, ascending \\ true)

Sorts the data in the frame based on a given column. By default the data is sorted in ascending order.

tail(frame, the_size \\ 5)

Returns the information at the bottom of the frame. Defaults to 5 lines.

to_csv(frame, filename, header \\ true)

Writes the information of the frame into a csv file. By default the column names are written also

transpose(frame)

Returns a Frame which data has been transposed.