File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -720,10 +720,25 @@ option:
720
720
721
721
pd.DataFrame(np.random.randn(3 , 12 ))
722
722
723
+ You can adjust the max width of the individual columns by setting ``display.max_colwidth ``
724
+
725
+ .. ipython :: python
726
+
727
+ datafile= {' filename' : [' filename_01' ,' filename_02' ],
728
+ ' path' : [" media/user_name/storage/folder_01/filename_01" ,
729
+ " media/user_name/storage/folder_02/filename_02" ]}
730
+
731
+ pd.set_option(' display.max_colwidth' ,30 )
732
+ pd.DataFrame(datafile)
733
+
734
+ pd.set_option(' display.max_colwidth' ,100 )
735
+ pd.DataFrame(datafile)
736
+
723
737
.. ipython :: python
724
738
:suppress:
725
739
726
740
pd.reset_option(' display.width' )
741
+ pd.reset_option(' display.max_colwidth' )
727
742
728
743
You can also disable this feature via the ``expand_frame_repr `` option.
729
744
This will print the table in one block.
You can’t perform that action at this time.
0 commit comments