Skip to content

Commit

Permalink
add docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcAntoineSchmidtQC committed Jul 4, 2024
1 parent 15ba2c1 commit 5454952
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tabmat/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,10 @@ def from_polars(
cat_threshold : int, default 4
Number of levels of a categorical column under which the column will be stored
as sparse one-hot-encoded columns instead of CategoricalMatrix
object_as_cat : bool, default False
If True, DataFrame columns stored as ``pl.String`` objects will be treated as
categorical columns. Note that this is different from pandas, where all object
columns are converted to categorical columns.
cat_position : str {'end'|'expand'}, default 'expand'
Position of the categorical variable in the index. If "last", all the
categoricals (including the ones that did not satisfy cat_threshold)
Expand Down

0 comments on commit 5454952

Please sign in to comment.