title: Loading Data Set with Breaks
body: <p>I'm trying to load a dataset with breaks in it. I am trying to find an intelligent way to make this work. I got started on it with the code i included. </p>
  
  <p>As you can see, the data within the file posted on the public FTP site starts at line 11, ends at line 23818, then starts at again at 23823, and ends at 45,630.</p>
  
  <pre><code>    import pandas as pd
      import numpy as np
      from io import BytesIO
      from zipfile import ZipFile
      from urllib.request import urlopen
  
      url = urlopen("http://mba.tuck.dartmouth.edu/pages/faculty/ken.french/ftp/10_Portfolios_Prior_12_2_Daily_CSV.zip")
      #Download Zipfile and create pandas DataFrame
      zipfile = ZipFile(BytesIO(url.read()))
      df = pd.read_csv(zipfile.open('10_Portfolios_Prior_12_2_Daily.CSV'), header = 0, 
                          names = ['asof_dt','1','2','3','4','5','6','7','8','9','10'], skiprows=10).dropna()
      df['asof_dt'] = pd.to_datetime(df['asof_dt'], format = "%Y%m%d")
  </code></pre>
  
  <p>I would ideally like the first set to have a version number "1", the second to have "2", etc.</p>
  
  <p>Any help would be greatly appreciated. Thank you.</p>