Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 45 additions & 4 deletions siuba/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,51 @@
__version__ = "0.4.2"

# default imports--------------------------------------------------------------
from .siu import _, Fx, Lam
from .siu import _, Fx, Lam, pipe, Pipeable
from .dply.across import across
from .dply.verbs import *
from .dply.verbs import __all__ as ALL_DPLY
from .dply.verbs import (
# Dply ----
group_by, ungroup,
select, rename,
mutate, transmute, filter, summarize,
arrange, distinct,
count, add_count,
head,
top_n,
# Tidy ----
spread, gather,
nest, unnest,
expand, complete,
separate, unite, extract,
# Joins ----
join, inner_join, full_join, left_join, right_join, semi_join, anti_join,
# TODO: move to vectors
if_else, case_when,
collect, show_query,
tbl,
)

# necessary, since _ won't be exposed in import * by default
__all__ = ['_', "Fx", "across", *ALL_DPLY]
__all__ = [
'_',
"Fx",
"pipe", "Pipeable",
"across",
"group_by", "ungroup",
"select", "rename",
"mutate", "transmute", "filter", "summarize",
"arrange", "distinct",
"count", "add_count",
"head",
"top_n",
# Tidy ----
"spread", "gather",
"nest", "unnest",
"expand", "complete",
"separate", "unite", "extract",
# Joins ----
"join", "inner_join", "full_join", "left_join", "right_join", "semi_join", "anti_join",
"if_else", "case_when",
"collect", "show_query",
"tbl"
]
2 changes: 2 additions & 0 deletions siuba/dply/forcats.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""Functions for working with categorical column data."""

import pandas as pd
import numpy as np

Expand Down
Loading