API: allow option truncate for show_dimensions to only show the dimensions if the
     frame is truncated (GH6547)
Merge pull request #7108 from jreback/show_dim

API: allow option truncate for display.show_dimensions to only show dimensions if truncated (GH6457)