Tibble
Reference of datar.tibble
Reference map of r-tidyverse-tibble can be found here.
Legend:
| Sample | Status |
|---|---|
| normal | API that is regularly ported |
| API that is not ported, or not an API originally | |
| bold | API that is unique in datar |
| italic | Working in process |
Tibbles
Tip
Tibbles in datar are just pandas.DataFrames. So there is no difference between data frames created by tibble() and pandas.DataFrame, unlike in R, tibble and data.frame.
Also note that tibbles in datar are not rownames/index aware for most APIs, just like most tidyverse APIs.
| API | Description | Notebook example |
|---|---|---|
tibble-package |
||
tibble() tibble_row() |
Build a data frame | |
fibble() |
Same as tibble() but used as Verb arguments |
|
tbl_df-class |
||
print(<tbl_df>)format(<tbl_df>) |
||
tribble() |
Row-wise tibble creation |
Coercion
| API | Description | Notebook example |
|---|---|---|
is_tibble() |
||
as_tibble() |
Convert data frames into datar's tibbles | |
new_tibble()validate_tibble() |
||
enframe() deframe() |
Converting iterables to data frames, and vice versa |
Manipulation
| API | Description | Notebook example |
|---|---|---|
$ [[ [ |
Please subset data frames using pandas syntax (df.col, df['col'], df.loc[...] or df.iloc[...] |
|
add_row() |
Add rows to a data frame | |
add_column() |
Add columns to a data frame |
Helpers
| API | Description | Notebook example |
|---|---|---|
reexports |
||
has_rownames()/has_index() remove_rownames()/remove_index()/drop_index() rownames_to_column()/index_to_column() rowid_to_column() column_to_rownames()/column_to_index() |
Tools for working with row names/DataFrame indexes | |
view() |