|
19 | 19 | from larray.util.misc import deprecate_kwarg |
20 | 20 | from larray.inout.session import register_file_handler |
21 | 21 | from larray.inout.common import _get_index_col, FileHandler |
22 | | -from larray.inout.pandas import df_aslarray, _axes_to_df, _df_to_axes, _groups_to_df, _df_to_groups |
| 22 | +from larray.inout.pandas import df_asarray, _axes_to_df, _df_to_axes, _groups_to_df, _df_to_groups |
23 | 23 | from larray.inout.xw_excel import open_excel |
24 | 24 | from larray.example import get_example_filepath |
25 | 25 |
|
@@ -220,8 +220,8 @@ def read_excel(filepath, sheet=0, nb_axes=None, index_col=None, fill_value=nan, |
220 | 220 | else: |
221 | 221 | # TODO: add support for range argument (using usecols, skiprows and nrows arguments of pandas.read_excel) |
222 | 222 | df = pd.read_excel(filepath, sheet, index_col=index_col, engine=engine, **kwargs) |
223 | | - return df_aslarray(df, sort_rows=sort_rows, sort_columns=sort_columns, raw=index_col is None, |
224 | | - fill_value=fill_value, wide=wide) |
| 223 | + return df_asarray(df, sort_rows=sort_rows, sort_columns=sort_columns, raw=index_col is None, |
| 224 | + fill_value=fill_value, wide=wide) |
225 | 225 |
|
226 | 226 |
|
227 | 227 | @register_file_handler('pandas_excel', ['xls', 'xlsx'] if xw is None else None) |
@@ -282,7 +282,7 @@ def list_items(self): |
282 | 282 | def _read_item(self, key, type, *args, **kwargs): |
283 | 283 | if type == 'Array': |
284 | 284 | df = self.handle.parse(key, *args, **kwargs) |
285 | | - return df_aslarray(df, raw=True) |
| 285 | + return df_asarray(df, raw=True) |
286 | 286 | elif type == 'Axis': |
287 | 287 | return self.axes[key] |
288 | 288 | elif type == 'Group': |
|
0 commit comments