title: how to create a dataframe from information extracted from a text with python?
body: <p>I'm new to programming, and I have a txt file with a lot of information sorted like this...</p>
  <p>Main_data1=random_name</p>
  <blockquote>
  <p>Secondary_data1=random_name
  Tertiary_data1=random_data,Tertiary_data2=random_data,Tertiary_data3=random_data</p>
  </blockquote>
  <blockquote>
  <p>Secondary_data2=random_name</p>
  <blockquote>
  <p>Tertiary_data1=random_data,Tertiary_data2=random_data,Tertiary_data3=random_data</p>
  </blockquote>
  </blockquote>
  <p>Mainn_Data2=random_name</p>
  <blockquote>
  <p>Secondary_data3=random_name</p>
  <blockquote>
  <p>Tertiary_data1=random_data,Tertiary_data2=random_data,Tertiary_data3=random_data</p>
  </blockquote>
  </blockquote>
  <blockquote>
  <p>Secondary_data4=random_name</p>
  <blockquote>
  <p>Tertiary_data1=random_data,Tertiary_data2=random_data,Tertiary_data3=random_data</p>
  </blockquote>
  </blockquote>
  <p>Main_Data3=random_name
  <em><strong>without data</strong></em></p>
  <p>...And the point is that I would like to convert it into a dataframe that associates each main_data to its respective secondary_data and that in turn associates the secondary_data to its Tertiary_data with python.</p>
  <p>I know how to create lists from the data and how to create dataframes from the lists, but when the lists have different number of items, I don't know how to join them into one dataframe, can anyone help me with this? I would really appreciate it</p>