Skip to content

ENH: Series item access via attribute #1903 #1904

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

PhE
Copy link

@PhE PhE commented Sep 12, 2012

Hack based on http://stackoverflow.com/questions/12383436/access-pandas-series-item-with-dot-notation-like-dataframe
Some tests included.

First contribution to this great project !
I hope this could help.

@wesm
Copy link
Member

wesm commented Nov 2, 2012

I wonder what the performance penalty of this is in attribute lookup time

@wesm
Copy link
Member

wesm commented Nov 2, 2012

%timeit s.index goes from ~130-150ns to ~350-400ns with this change. Tabling this until 0.10 (at least)

@ghost
Copy link

ghost commented Dec 15, 2012

could probably add df.c.colX and df.r.rowX without performance hit and cleaner namespace
in ipython tab completion.

@ghost ghost mentioned this pull request Mar 14, 2013
@ghost
Copy link

ghost commented Mar 14, 2013

superceded by #3045, closing in 3..2..

@ghost
Copy link

ghost commented Mar 14, 2013

@ghost ghost closed this Mar 14, 2013
@ghost ghost reopened this May 14, 2013
@ghost
Copy link

ghost commented May 14, 2013

I closed for a PR which I withdrew, let's keep this open for future discussion.

@cpcloud
Copy link
Member

cpcloud commented Aug 23, 2013

this was covered by #3482, closing.

@cpcloud cpcloud closed this Aug 23, 2013
@jreback
Copy link
Contributor

jreback commented Aug 23, 2013

this was closed by #3482 (will note it soon)

In [1]: s = Series([1,2,3],index=['a','b','c'])

In [2]: s.c
Out[2]: 3

In [3]: s.b
Out[3]: 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants