title: How can I display the contents of a variable that uses .sum() in a label using tkinter
body: <p>I'm creating a counter to count how many empty cells there are when a user uploads a CSV file. I am also using treeview to display the contents of the CSV. The <code>print(&quot;There are&quot;, emptyCells.sum(), &quot;empty cells&quot;)</code> works and prints the number to the console but I want to display this in a label so the user can view this in the GUI. It is not displaying anything but a <code>&quot;row&quot;</code> is being added to the application after a file has been uploaded where the label should be as everything moves down but no contents are being inserted into the label.</p>
  <pre class="lang-py prettyprint-override"><code>emptyCells = (df[df.columns] == &quot; &quot;).sum()
  
  # print(&quot;There are&quot;, emptyCells.sum(), &quot;empty cells&quot;)
  
  tree.pack(side=BOTTOM, pady=50)
  messagebox.showinfo(&quot;Success&quot;, &quot;File Uploaded Successfully&quot;)
  
  stringVariable = StringVar()
  printVariable = (&quot;There are&quot;, emptyCells.sum(), &quot;empty cells&quot;)
  #print(printVariable)
  
  stringVariable.set(printVariable)
  lbl = Label(windowFrame, textvariable=stringVariable, font=25)
  lbl.pack()
  </code></pre>