title: How to limit the number of strings (characters/words) in a column using DataFrame
body: <p>Trying to limit the number of character shown in the output of a DataFrame.</p>
  
  <p>Here is an example of a DataFrame:</p>
  
  <pre><code>     Abc                       XYZ
  0  Hello   How are you doing today
  1   Good   This is a job well done
  2    Bye          See you tomorrow
  3  Books  Read chapter 1 to 5 only
  </code></pre>
  
  <p>Desired output:</p>
  
  <pre><code>     Abc                       XYZ
  0  Hello                   How are 
  1   Good                   This is
  2    Bye                   See you
  3  Books              Read chapter
  </code></pre>
  
  <p>This is what I tried:</p>
  
  <pre><code>pd.set_option('display.max_info_rows', 2)
  pd.set_option('display.max_info_columns', 2)
  pd.set_option('display.max_colwidth', 2)
  </code></pre>
  
  <p><code>max_info_rows</code> and <code>max_info_columns</code> did not do anything, while <code>max_colwidth</code> actually expanded the characters further.</p>
  
  <p>Anyway to limit the number of characters in a dataframe?</p>
  
  <p>Thanks!</p>