Skip to content

Commit

Permalink
Fix index
Browse files Browse the repository at this point in the history
  • Loading branch information
malmaud committed Apr 20, 2017
1 parent 596c0f3 commit 91ca3d0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Pandas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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
Expand Down

0 comments on commit 91ca3d0

Please sign in to comment.