Skip to content

Weird error in master when asked for type(df) #6225

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
michaelaye opened this issue Feb 2, 2014 · 3 comments
Closed

Weird error in master when asked for type(df) #6225

michaelaye opened this issue Feb 2, 2014 · 3 comments
Milestone

Comments

@michaelaye
Copy link
Contributor

In [9]: type(detectors)
WARNING: Exception in text/html formatter: unbound method _repr_html_() must be called with DataFrame instance as first argument (got nothing instead)
Out[9]:
pandas.core.frame.DataFrame
In [10]: detectors.info()
<class 'pandas.core.frame.DataFrame'>
DatetimeIndex: 1565757 entries, 2008-01-08 17:15:29.111000 to 2008-01-18 07:57:01.504000
Data columns (total 4 columns):
a6_11    1565757  non-null values
b1_11    1565757  non-null values
b2_11    1565757  non-null values
b3_11    1565757  non-null values
dtypes: int64(4)
In [11]: 
pd.__version__
Out[11]:
'0.13.0rc1-59-g90990db'

I noticed another oddity: Why does the type-display create an output numbering (=Out[9]) but the display of detectors.info() does not? Something to do with IPython?

@ghost
Copy link

ghost commented Feb 2, 2014

Good catch, it's a recent change in IPython, I've opened an issue.
We've already dealt with the implication for pandas specifically in
#5922 for 0.13.1.

@ghost ghost closed this as completed Feb 2, 2014
@michaelaye
Copy link
Contributor Author

Thanks. Sorry that I didn't provide the IPython version, it's indeed quite close to HEAD in master.

@ghost
Copy link

ghost commented Feb 2, 2014

Not a problem. They don't include commit information in their version strings anyway.
Remember that starting with 0.13.1 there's pd.show_versions() though, it's right there.

This issue was closed.
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

1 participant