Skip to content

setup.py #58

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
ivanistheone opened this issue Jul 15, 2011 · 3 comments
Closed

setup.py #58

ivanistheone opened this issue Jul 15, 2011 · 3 comments

Comments

@ivanistheone
Copy link

sudo python setup.py -v build # fails on Mac OS 10.6 or something

can't convert the .pyx files to .c
hard linking pandas/src/skiplist.pyx -> pandas-0.4.0.dev20110715_027c90b/pandas/src
'pandas/src/sparse.c' not a regular file -- skipping
hard linking pandas/src/sparse.pyx -> pandas-0.4.0.dev20110715_027c90b/pandas/src
'pandas/src/tseries.c' not a regular file -- skipping

changing the setup.py as follows:
@line10

  • from setuptools import setup
  • from scipy_distutils.core import setup

makes it work.

thx Pearu: http://osdir.com/ml/python.f2py.user/2003-11/msg00008.html

@wesm
Copy link
Member

wesm commented Jul 15, 2011

hey ivan can you try with the latest git HEAD? I switched to remove setuptools from the equation, I think it's messing some things up

@ivanistheone
Copy link
Author

hey ivan can you try with the latest git HEAD?
I switched to remove setuptools from the equation,
I think it's messing some things up

It builds fine now.

I am new to R.
I searched for 30 mins to find the "select these columns only"
functionality on the DataFrame object...

ly = pandas.read_csv( 'emails_yahoo_ab.csv'), na_values=range(0,55),
index_col=None )
ly.reindex(columns=["First", "Last", "Email","Home", "Work"] ) ???
...
prints what I want
...
could getitem be overloaded to take lists?
ly.getitem[ ["First","Last"] ] ??

Very nice stuff...

ivan

@wesm
Copy link
Member

wesm commented Jul 15, 2011

it's not in the docs but there's now a special indexer attribute which does what you want:

ly.ix[:, ['First', 'Last']]

note you never have to type getitem in practice, it's just [...], so

ly.getitem('First') is the same as ly['First']

closing the issue =)

@wesm wesm closed this as completed Jul 15, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
Fix issue with new versions of NumPy (v1.10.1) that cause dtype metadata to be lost
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

No branches or pull requests

2 participants