{"action":"created","issue":{"url":"https://api.github.com/repos/pydata/pandas/issues/7372","labels_url":"https://api.github.com/repos/pydata/pandas/issues/7372/labels{/name}","comments_url":"https://api.github.com/repos/pydata/pandas/issues/7372/comments","events_url":"https://api.github.com/repos/pydata/pandas/issues/7372/events","html_url":"https://github.com/pydata/pandas/issues/7372","id":35141306,"number":7372,"title":"Strange behaviour of DataFrame html repr in qtconsole","user":{"login":"jorisvandenbossche","id":1020496,"avatar_url":"https://avatars.githubusercontent.com/u/1020496?v=3","gravatar_id":"","url":"https://api.github.com/users/jorisvandenbossche","html_url":"https://github.com/jorisvandenbossche","followers_url":"https://api.github.com/users/jorisvandenbossche/followers","following_url":"https://api.github.com/users/jorisvandenbossche/following{/other_user}","gists_url":"https://api.github.com/users/jorisvandenbossche/gists{/gist_id}","starred_url":"https://api.github.com/users/jorisvandenbossche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorisvandenbossche/subscriptions","organizations_url":"https://api.github.com/users/jorisvandenbossche/orgs","repos_url":"https://api.github.com/users/jorisvandenbossche/repos","events_url":"https://api.github.com/users/jorisvandenbossche/events{/privacy}","received_events_url":"https://api.github.com/users/jorisvandenbossche/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pydata/pandas/labels/Output-Formatting","name":"Output-Formatting","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-06-06T12:28:48Z","updated_at":"2015-01-19T18:13:45Z","closed_at":"2015-01-19T18:13:45Z","body":"Don't know if this is related to the new changes in 0.14 in the display of Dataframes or to #7180. But I find the following behaviour with 0.14 in Spyders IPython qtconsole:\r\n\r\n\r\n![new picture 7](https://cloud.githubusercontent.com/assets/1020496/3200012/e7a8ddd6-ed74-11e3-8447-a851f1d8daf8.png)\r\n\r\nTo reproduce:\r\n\r\n```\r\ndf = pd.DataFrame(np.random.randn(2,20), columns=list('ABCDEFGHIJKLMNOPQRST'))\r\ndf['very_long_column_name'] = [1,2]\r\ndf['X'] = ['very_long_column_values', 'other_long_string']\r\n```\r\n* This seems not a very usefull behaviour to me? \r\nShould it truncate on width rather than number of columns?\r\n* It is also not truncating (above dataframe has 22 columns, while default `max_columns` is 20 (and I checked the setting)), while it truncated correctly for the text repr.\r\n\r\nOther strange thing, I saw this in the Spyder IPython console (which is an embedded qtconsole I think). However, when I tried this in a qtconsole, it gave me first the text repr instead of the html repr (although `pd.options.display.notebook_html_repr` was set to True), so I used `HTML(df.to_html())` for the above picture (but the result is the same as in Spyder).\r\n\r\n@bjonen\r\n"},"comment":{"url":"https://api.github.com/repos/pydata/pandas/issues/comments/70537150","html_url":"https://github.com/pydata/pandas/issues/7372#issuecomment-70537150","issue_url":"https://api.github.com/repos/pydata/pandas/issues/7372","id":70537150,"user":{"login":"takluyver","id":327925,"avatar_url":"https://avatars.githubusercontent.com/u/327925?v=3","gravatar_id":"","url":"https://api.github.com/users/takluyver","html_url":"https://github.com/takluyver","followers_url":"https://api.github.com/users/takluyver/followers","following_url":"https://api.github.com/users/takluyver/following{/other_user}","gists_url":"https://api.github.com/users/takluyver/gists{/gist_id}","starred_url":"https://api.github.com/users/takluyver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takluyver/subscriptions","organizations_url":"https://api.github.com/users/takluyver/orgs","repos_url":"https://api.github.com/users/takluyver/repos","events_url":"https://api.github.com/users/takluyver/events{/privacy}","received_events_url":"https://api.github.com/users/takluyver/received_events","type":"User","site_admin":false},"created_at":"2015-01-19T18:13:45Z","updated_at":"2015-01-19T18:13:45Z","body":"No, I think it's fine to close this."}}