title: Is there a concise way to show all rows in pandas for just the current command?
body: <p>Sometimes I want to show all of the rows in a pandas DataFrame, but only for a single command or code-block.</p>
  
  <p>Of course I can set the "max_rows" display option to a large number, but then I have to repeat the command afterwards in order to revert to my preferred setting. (I like 12 rows max, personally).</p>
  
  <pre><code>pd.options.display.max_rows=1000
  myDF
  pd.options.display.max_rows=12
  </code></pre>
  
  <p>That's annoying.</p>
  
  <p>I read in the documentation that I can use the pd.option_context() function to accomplish this if I combine my command with a "with" statement:</p>
  
  <pre><code>with pd.option_context("display.max_rows", 1000): myDF
  </code></pre>
  
  <p>I couldn't get that to work, (no output is returned). 
  But I think such a solution would <em>still</em> be too much typing for routine incidental usage!</p>
  
  <p>I wish there was some quick pythonic way to override the display options!<br>
  Does one exist? Have I overlooked something?</p>
  
  <p>I like how one can alter the # of rows that the .head() function outputs by passing it an argument for the # of rows, but it still must be lower than the "display.max_rows" setting...</p>
  
  <p>I know I <em>could</em> keep the "display.max_rows" setting really high all the time, and then tack a .head(12) function on most of the time, but I think most people would agree on how annoying that would be.</p>
  
  <p>I am indeed aware that one can view all (or most of?) the values in a pandas Series by passing it to a core function such as list().  But that is tricky to do with a DF. Furthermore, it's hard to read when it's not in a tabular format.</p>
  
  <p>Similar to <a href="https://stackoverflow.com/a/30608484/4967321">the solution for my first question</a>, I imagine there's probably a way to write my own function (to be placed in a startup script), but I'm not sure the best way to write it.</p>