title: How we can use iter_rows() in Python openpyxl package?
body: <p>I'm using <code>openpyxl</code> package in <code>Python(Canopy)</code> to use excel files. We have this tutorial in this link : <a href="https://openpyxl.readthedocs.org/en/latest/tutorial.html#loading-from-a-file" rel="noreferrer">LINK</a></p>
  
  <pre><code>you can also use the openpyxl.worksheet.Worksheet.iter_rows() method:
  
  &gt;&gt;&gt; tuple(ws.iter_rows('A1:C2'))
  ((&lt;Cell Sheet1.A1&gt;, &lt;Cell Sheet1.B1&gt;, &lt;Cell Sheet1.C1&gt;),
   (&lt;Cell Sheet1.A2&gt;, &lt;Cell Sheet1.B2&gt;, &lt;Cell Sheet1.C2&gt;))
  
  &gt;&gt;&gt; for row in ws.iter_rows('A1:C2'):
  ...        for cell in row:
  ...            print cell
  &lt;Cell Sheet1.A1&gt;
  &lt;Cell Sheet1.B1&gt;
  &lt;Cell Sheet1.C1&gt;
  &lt;Cell Sheet1.A2&gt;
  &lt;Cell Sheet1.B2&gt;
  &lt;Cell Sheet1.C2&gt;
  </code></pre>
  
  <p>How we can import <code>openpyxl.worksheet.Worksheet.iter_rows()</code> method in python? I used this code:</p>
  
  <pre><code>import openpyxl as op
  ms = op.load_workbook('mtest.xlsx')
  
  ws = ms.active
  
  op.worksheet.Worksheet.iter_rows()
  </code></pre>
  
  <p>This code returns:</p>
  
  <pre><code>type object 'Worksheet' has no attribute 'iter_rows' 
  </code></pre>
  
  <p>What is the problem?</p>