Applying max_colwidth to the DataFrame index (#7856)

justification to comply with tests