title: django error 'context must be a dict rather than DataFrame'
body: <p>I'm working on a translator program. I want the result to appear at the bottom of the original page when the user presses the 'Submit' button.</p>
  <p>I created a function in 'views.py' and returned the result in the form of a DataFrame (I checked that this Python code itself is fine) and I got an error called 'context must be a dictator than data frame'.
  I tried several ways to change it to dict format, but it only caused other errors.</p>
  <p>This is my 'views.py' code and 'urls.py' code. Please let me know if there is anything wrong.</p>
  <p><strong>views.py</strong></p>
  <pre><code>class Postview(View):
  
      @csrf_exempt
      def success(request):
          content = request.POST.get('content')
  
          dict = pd.read_csv(&quot;C:\\Users\\user\\jeju-dialect-translation\\jeju\\dialect\\dict2.csv&quot;, sep=&quot;,&quot;, encoding='cp949')
          
          hannanum = Hannanum()
          okt = Okt()
  
          nouns = hannanum.nouns(content)
  
          stem = okt.morphs(content, stem = True)
  
          tempt=[]
  
          for i in range(0, len(stem)):
              if (len(stem[i]) == 1):
                  tempt.append(stem[i])
  
          adjective = list(set(stem) - set(tempt))
  
          results = pd.DataFrame(columns = {'siteName', 'contents'})
  
          for i in nouns:
              x = dict[dict['siteName'] == i]
              x = x[['siteName', 'contents']]
              results = pd.concat([results, x], axis = 0)
  
          for i in adjective:
              y = dict[dict['siteName'].str.match(i)]
              results = pd.concat([results, y], axis = 0)
  
          context = results.drop_duplicates()
  
          return render(request, 'dialect/trans_suc.html', context)
  
  </code></pre>
  <p><strong>urls.py</strong></p>
  <pre><code>urlpatterns = [
      path('admin/', admin.site.urls),
      path('dialect/', views.Postview.as_view(), name='main_page'),
      path('trans/', views.Postview.success, name='trans_suc')
  ]
  </code></pre>