Skip to content

Commit a914bbe

Browse files
committed
Added count of columns when DataFrame is printed out
1 parent 0098856 commit a914bbe

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)