Skip to content

df summary view should show dtype associated with column, not just overall counts. #3429

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
ghost opened this issue Apr 23, 2013 · 12 comments · Fixed by #5682
Closed

df summary view should show dtype associated with column, not just overall counts. #3429

ghost opened this issue Apr 23, 2013 · 12 comments · Fixed by #5682
Labels
Dtype Conversions Unexpected or buggy dtype conversions Output-Formatting __repr__ of pandas objects, to_string
Milestone

Comments

@ghost
Copy link

ghost commented Apr 23, 2013

No description provided.

@jreback
Copy link
Contributor

jreback commented Apr 23, 2013

So 1st view should have dtype line.....

In [38]: DataFrame(randn(10,2))
Out[38]: 
          0         1
0  0.005503 -0.640638
1 -0.865491  1.448725
2 -1.259692 -0.973965
3  0.439085  0.390064
4  0.100232 -0.322328
5  0.820644 -1.234507
6  1.085050 -0.189603
7  0.553376  1.806583
8 -1.190961 -1.908767
9 -1.133783  0.958868

In [39]: DataFrame(randn(10,2)).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 10 entries, 0 to 9
Data columns (total 2 columns):
0    10  non-null values
1    10  non-null values
dtypes: float64(2)

@ghost
Copy link
Author

ghost commented Apr 23, 2013

more like

In [39]: DataFrame(randn(10,2)).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 10 entries, 0 to 9
Data columns (total 2 columns):
0    10  non-null values [datetime64[ns]]
1    10  non-null values [object]
dtypes: float64(1), object(1)

@ghost
Copy link
Author

ghost commented Apr 23, 2013

not so much to see if there are dtype issues, as to get an idea
of the data when the column names aren't clear

@jreback
Copy link
Contributor

jreback commented Apr 23, 2013

thats what I meant :)

agreed..thought this was in 0.11....oh well

@cpcloud
Copy link
Member

cpcloud commented Jul 29, 2013

+1 on this

@jreback
Copy link
Contributor

jreback commented Sep 26, 2013

@cpcloud want to do this?

@cpcloud
Copy link
Member

cpcloud commented Sep 26, 2013

sure

@dragoljub
Copy link

So then I have to ask do we even need to repeat 'values'? No extra square brackets and no 'values' looks better IMO.

In [39]: DataFrame(randn(10,2)).info()
<class 'pandas.core.frame.DataFrame'>
Int64Index: 10 entries, 0 to 9
Data columns (total 2 columns):
0    10  non-null datetime64[ns]
1    10  non-null object
dtypes: float64(1), object(1)

@cpcloud
Copy link
Member

cpcloud commented Dec 14, 2013

@dragoljub +1 on removing values and square brackets. @y-p @jreback?

@ghost
Copy link
Author

ghost commented Dec 14, 2013

Sure.

@jreback
Copy link
Contributor

jreback commented Dec 14, 2013

is the example just a typo? first column is datetime64 but shows float in the summary?

@cpcloud
Copy link
Member

cpcloud commented Dec 14, 2013

yep ... i corrected it over at the PR.

@ghost ghost closed this as completed in #5682 Jan 1, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dtype Conversions Unexpected or buggy dtype conversions Output-Formatting __repr__ of pandas objects, to_string
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants