title: How do I run "pandas.read_csv" with the ''delimeter" inside the definition of a generator function?
body: <p>CSV file size is so large (several GB), so I wanted to slice the row by steps and modify each sliced <code>DataFrames</code> with pivot and then combine the <code>DataFrames</code>.</p>
  
  <p>I used a generator function for slicing the data by rows but I was not able to get stuck in the <code>'delimeter'</code> argument in <code>pandas.read_csv</code> as below.</p>
  
  <pre><code>import pandas as pd
  
  def generator():
    for x in range(0,366130,11):
      yield pd.read_csv(filename, nrows = x, delimeter='\x01', header=None)
  
  g = generator()
  df = next(g)
  
  df
  </code></pre>
  
  <p>When I ran this code, I got the following error in ipython:</p>
  
  <pre><code>TypeError: Traceback (most recent call last)
  &lt;ipython-input-76-7e0eb8a3d8b6&gt; in &lt;module&gt;
  ----&gt; 1 df1 = next(g)
        2 df1
  
  &lt;ipython-input-75-fae533ab2013&gt; in generator()
        2 #      print("homework_1_1")
        3     for x in range(0,366130,11):
  ----&gt; 4       yield pd.read_csv(filename, nrows = x, delimeter='\x01', header=None)
        5 
        6 g = generator()
  
  TypeError: parser_f() got an unexpected keyword argument 'delimeter'
  </code></pre>
  
  <p>How can I fix this?</p>