Skip to content

Commit f8fbc08

Browse files
author
y-p
committed
Merge pull request #3084 from ilblackdragon/master
Added count of columns when DataFrame is printed out
2 parents 308beb1 + a914bbe commit f8fbc08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1651,7 +1651,7 @@ def info(self, verbose=True, buf=None, max_cols=None):
16511651
max_cols = get_option('display.max_info_columns')
16521652

16531653
if verbose and len(self.columns) <= max_cols:
1654-
lines.append('Data columns:')
1654+
lines.append('Data columns (total %d columns):' % len(self.columns))
16551655
space = max([len(com.pprint_thing(k)) for k in self.columns]) + 4
16561656
counts = self.count()
16571657
if len(cols) != len(counts):

0 commit comments

Comments
 (0)