<p dir="auto">I am calling to_string() without any parameters and it beautifully fixed-formatted my dataframe apart from my very wide filename column, that is being truncated with "...". How can I avoid that?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="                                            FILENAME  OBS_ID  XUV  
0  'mvn_iuv_l1a_IPH3-cycle00007-mode040-muvdark_2...      40  MUV  
1  'mvn_iuv_l1a_IPH2-cycle00047-mode050-muvdark_2...      50  MUV  
2  'mvn_iuv_l1a_apoapse-orbit00127-mode2001-muvda...    2001  MUV  
3  'mvn_iuv_l1a_APP1-orbit00087-mode1031-fuvdark_...    1031  FUV  
4  'mvn_iuv_l1a_IPH2-cycle00005-mode060-fuvdark_2...      60  FUV  "><pre lang="text" class="notranslate"><code class="notranslate">                                            FILENAME  OBS_ID  XUV  
0  'mvn_iuv_l1a_IPH3-cycle00007-mode040-muvdark_2...      40  MUV  
1  'mvn_iuv_l1a_IPH2-cycle00047-mode050-muvdark_2...      50  MUV  
2  'mvn_iuv_l1a_apoapse-orbit00127-mode2001-muvda...    2001  MUV  
3  'mvn_iuv_l1a_APP1-orbit00087-mode1031-fuvdark_...    1031  FUV  
4  'mvn_iuv_l1a_IPH2-cycle00005-mode060-fuvdark_2...      60  FUV  
</code></pre></div>
<p dir="auto">I tried calling it like this, but to no avail (same output):</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="with open('test_summary_out.txt','w') as f:
    f.write(summarydf.head().to_string(formatters={'filename':lambda x: &quot;{:100}&quot;.format(x)}))"><pre class="notranslate"><span class="pl-k">with</span> <span class="pl-en">open</span>(<span class="pl-s">'test_summary_out.txt'</span>,<span class="pl-s">'w'</span>) <span class="pl-k">as</span> <span class="pl-s1">f</span>:
    <span class="pl-s1">f</span>.<span class="pl-en">write</span>(<span class="pl-s1">summarydf</span>.<span class="pl-en">head</span>().<span class="pl-en">to_string</span>(<span class="pl-s1">formatters</span><span class="pl-c1">=</span>{<span class="pl-s">'filename'</span>:<span class="pl-k">lambda</span> <span class="pl-s1">x</span>: <span class="pl-s">"{:100}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">x</span>)}))</pre></div>
<p dir="auto">Version: 0.16 with Python 3.4</p>
<p dir="auto">Bit of a PITA to repeat the information in every PR in a release note for that PR as well. The automation tools in IPython for this work well there and in statsmodels. Would be nice to consider adding these to pandas.</p>
<p dir="auto"><a href="https://github.com/ipython/ipython/blob/master/tools/gh_api.py">https://github.com/ipython/ipython/blob/master/tools/gh_api.py</a><br>
<a href="https://github.com/ipython/ipython/blob/master/tools/github_stats.py">https://github.com/ipython/ipython/blob/master/tools/github_stats.py</a></p>