title: Creating a dataframe from a dictionary is giving me a could not broadcast error
body: <p>I am trying to create a data frame from a dictionary I have and it gives me an error that says:</p>
  <pre><code>&gt; ValueError: could not broadcast input array from shape (3) into shape
  &gt; (1)
  </code></pre>
  <p>Here is the code:</p>
  <pre><code>import requests
  from bs4 import BeautifulSoup
  from requests.api import request
  from selenium import webdriver
  from bs4 import Tag, NavigableString
  baseurl = &quot;https://www.olx.com.eg/&quot;
  
  headers = {
      &quot;User-Agent&quot;: &quot;Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36&quot;
  }
  
  product_links = []
  for x in range(1,13):
      r = requests.get(f&quot;https://www.olx.com.eg/jobs/?page={x}&quot;, headers=headers)
      soup = BeautifulSoup(r.content, &quot;lxml&quot;)
  
  
      product_list = soup.findAll(&quot;div&quot;, class_=&quot;ads__item&quot;)
    
  
  
          
      for item in product_list:
          for link in item.findAll(&quot;a&quot;,href=True):
              product_links.append(link['href'])
  
  
      for thing in product_links:
          if '#' in product_links: product_links.remove('#')
  
  
  # test_link = 'https://www.olx.com.eg/ad/-IDcjqyP.html'
  
  for link in product_links:
      r = requests.get(link, headers=headers)
      soup = BeautifulSoup(r.content, &quot;lxml&quot;)
      job_title = soup.find('h1',class_=&quot;brkword&quot;)
      job_location = soup.find('strong',class_=&quot;c2b&quot;)
      job_date = soup.find('span',class_=&quot;pdingleft10 brlefte5&quot;)
      try:
  
          seniority = soup.find_all('td',class_='value')[0].text.strip()
      except:
          print(&quot;&quot;)
  
      try:    
          full_or_part = soup.find_all('td',class_='value')[1].text.strip()
      except:
          print(&quot;&quot;)
      try:    
          education_level = soup.find_all('td',class_='value')[2].text.strip()
      except:
          print(&quot;&quot;)
      try:
          sector = soup.find_all('td',class_='value')[3].text.strip()
      except:
          print(&quot;&quot;)
      description = soup.find_all('p',class_='pding10')
  
      df = {
      &quot;Job Title&quot; : job_title,
      &quot;Job Location&quot; : job_location,
      &quot;Post Date&quot; : job_date,
      &quot;Seniority Level&quot; : seniority,
      &quot;Full or Part time&quot; : full_or_part,
      &quot;Educational Level&quot; : education_level,
      &quot;Sector&quot; : sector,
      &quot;Job Description&quot; : description
      }
  
  
  job_data = pd.DataFrame(df)
  </code></pre>
  <p>Please tell me how I can transform the data I have into a data frame so I can export it into a csv
  first of all I was trying to to scrape this jobs website and it scraped it successfully returning 500 jobs in the dictionary but I was unfortunately not able to transform the code into a dataframe, so later on i can export that out to a csv file, so i can do some analysis on it</p>