Skip to content
Merged
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
5 changes: 3 additions & 2 deletions doc/source/changes/version_0_27.rst.inc
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ Backward incompatible changes
vs
Axis(['a2', 'a3'], 'a')

previous behavior can be recovered through `drop_labels` or by changing labels via
`set_labels` or `set_axes`:
previous behavior can be recovered through `drop_labels` or by changing labels via `set_labels` or `set_axes`:

>>> arr['a0,a1'] = arr['a2,a3'].drop_labels('a')
>>> arr['a0,a1'] = arr['a2,a3'].set_labels('a', {'a2': 'a0', 'a3': 'a1'})

* from_frame `parse_header` argument defaults to `False` instead of `True`.


New features
------------
Expand Down
4 changes: 2 additions & 2 deletions larray/inout/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def from_series(s, sort_rows=False):
return LArray(s.values, Axis(s.index.values, name))


def from_frame(df, sort_rows=False, sort_columns=False, parse_header=True, unfold_last_axis_name=False, **kwargs):
def from_frame(df, sort_rows=False, sort_columns=False, parse_header=False, unfold_last_axis_name=False, **kwargs):
"""
Converts Pandas DataFrame into LArray.

Expand All @@ -112,7 +112,7 @@ def from_frame(df, sort_rows=False, sort_columns=False, parse_header=True, unfol
Defaults to False.
parse_header : bool, optional
Whether or not to parse columns labels. Pandas treats column labels as strings.
If True, column labels are converted into int, float or boolean when possible. Defaults to True.
If True, column labels are converted into int, float or boolean when possible. Defaults to False.
unfold_last_axis_name : bool, optional
Whether or not to extract the names of the last two axes by splitting the name of the last index column of the
dataframe using ``\\``. Defaults to False.
Expand Down