Module basic

Module basic 

Source
Expand description

Basic data operations for dsq

This module provides fundamental operations like selection, filtering, mapping, and basic transformations that form the building blocks of more complex data processing pipelines.

Structs§

SortOptions
Sort options for specifying column and direction

Functions§

add_column
Add a column to a Value
cast
Cast column types
count
Count operation on Value
drop
Drop columns
drop_columns
Drop columns from a Value
drop_nulls
Drop null values
explode
Explode list columns into separate rows
fill_null
Fill null values with a constant
filter
Filter rows based on a predicate
filter_rows
Filter rows based on a predicate function
filter_values
Filter values based on a predicate function
head
Head operation on Value
head_df
Get the first n rows from a DataFrame
map_column
Apply a function to each element in a column
melt
Melt DataFrame from wide to long format
pivot
Pivot DataFrame from long to wide format (placeholder)
rename
Rename columns
rename_columns
Rename columns in a Value
reverse
Reverse operation on Value
sample
Sample rows from DataFrame
select
Select specific columns from a DataFrame
select_by_index
Select columns by index
select_columns
Select columns from a Value (works with DataFrame, Array, Object)
slice
Slice operation on Value
slice_df
Get a slice of rows from a DataFrame
sort
Sort DataFrame by columns
sort_by_columns
Sort by columns with sort options
tail
Tail operation on Value
tail_df
Get the last n rows from a DataFrame
transpose
Transpose DataFrame
unique
Unique operation on Value
unique_df
Get unique rows from DataFrame
with_column
Add a new column with a constant value