Skip to content

Commit 91ca3d0

Browse files
committed
Fix index
1 parent 596c0f3 commit 91ca3d0

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/Pandas.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,13 @@ pyattr_set([DataFrame, Series], :T, :abs, :align, :any, :argsort, :asfreq, :asof
210210
:drop_duplicates, :dropna, :duplicated, :fillna, :filter, :first, :first_valid_index,
211211
:head, :hist, :idxmax, :idxmin, :iloc, :isin, :join, :last, :last_valid_index,
212212
:loc, :mean, :median, :min, :mode, :order, :pct_change, :pivot, :plot, :quantile,
213-
:rank, :reindex, :reindex_axis, :reindex_like, :rename, :reodrer_levels,
213+
:rank, :reindex, :reindex_axis, :reindex_like, :rename, :reorder_levels,
214214
:replace, :resample, :reset_index, :sample, :select, :set_index, :shift, :skew,
215215
:sort, :sort_index, :sortlevel, :stack, :std, :sum, :swaplevel, :tail, :take,
216216
:to_clipboard, :to_csv, :to_dense, :to_dict, :to_excel, :to_gbq, :to_hdf, :to_html,
217217
:to_json, :to_latex, :to_msgpack, :to_panel, :to_pickle, :to_records, :to_sparse,
218218
:to_sql, :to_string, :truncate, :tz_conert, :tz_localize, :unstack, :var, :weekday,
219-
:xs, :index, :merge)
219+
:xs, :merge)
220220
pyattr_set([DataFrame], :groupby, :columns)
221221

222222
Base.size(x::Union{Loc, Iloc, Ix}) = x.pyo[:obj][:shape]
@@ -235,6 +235,10 @@ function should_offset(s::Series, arg)
235235
false
236236
end
237237

238+
function index(x::PandasWrapped)
239+
pandas_wrap(x.pyo["index"])
240+
end
241+
238242
@pyasvec Series
239243
@pyasvec Loc
240244
@pyasvec Ix

0 commit comments

Comments
 (0)