diff --git a/src/Pandas.jl b/src/Pandas.jl index 33eb0ec..e513ff1 100644 --- a/src/Pandas.jl +++ b/src/Pandas.jl @@ -210,13 +210,13 @@ pyattr_set([DataFrame, Series], :T, :abs, :align, :any, :argsort, :asfreq, :asof :drop_duplicates, :dropna, :duplicated, :fillna, :filter, :first, :first_valid_index, :head, :hist, :idxmax, :idxmin, :iloc, :isin, :join, :last, :last_valid_index, :loc, :mean, :median, :min, :mode, :order, :pct_change, :pivot, :plot, :quantile, -:rank, :reindex, :reindex_axis, :reindex_like, :rename, :reodrer_levels, +:rank, :reindex, :reindex_axis, :reindex_like, :rename, :reorder_levels, :replace, :resample, :reset_index, :sample, :select, :set_index, :shift, :skew, :sort, :sort_index, :sortlevel, :stack, :std, :sum, :swaplevel, :tail, :take, :to_clipboard, :to_csv, :to_dense, :to_dict, :to_excel, :to_gbq, :to_hdf, :to_html, :to_json, :to_latex, :to_msgpack, :to_panel, :to_pickle, :to_records, :to_sparse, :to_sql, :to_string, :truncate, :tz_conert, :tz_localize, :unstack, :var, :weekday, -:xs, :index, :merge) +:xs, :merge) pyattr_set([DataFrame], :groupby, :columns) Base.size(x::Union{Loc, Iloc, Ix}) = x.pyo[:obj][:shape] @@ -235,6 +235,10 @@ function should_offset(s::Series, arg) false end +function index(x::PandasWrapped) + pandas_wrap(x.pyo["index"]) +end + @pyasvec Series @pyasvec Loc @pyasvec Ix