title: Pandas Series to Pandas Dataframe
body: <p>I have an object <code>&lt;class 'pandas.core.series.Series'&gt;</code> that looks like this:</p>
  
  <pre><code>DataFrame(cfd_appr).transpose().sum(axis=1)
  2022.12.06_Bild 2.txt     524.0
  2022.12.06_Bild 3.txt     620.0
  2022.12.06_Bild 4.txt     535.0
  2022.12.06_Bild 5.txt     799.0
  2022.12.06_Bild 6.txt    1032.0
  2022.12.06_Bild 8.txt       4.0
  dtype: float64
  </code></pre>
  
  <p>Created by <code>DataFrame(some_cfd).transpose().sum(axis=1)</code>. Now I need to transform it so it would look as follows:</p>
  
  <pre><code>                              1
  2022.12.06_Bild 2.txt     524.0
  2022.12.06_Bild 3.txt     620.0
  2022.12.06_Bild 4.txt     535.0
  2022.12.06_Bild 5.txt     799.0
  2022.12.06_Bild 6.txt    1032.0
  2022.12.06_Bild 8.txt       4.0
  </code></pre>
  
  <p>After hours of reading <a href="https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.reset_index.html#pandas.DataFrame.reset_index" rel="nofollow noreferrer">Pandas documentation</a> I still can't figure out how to do that. It should be a <code>&lt;class 'pandas.core.frame.DataFrame'&gt;</code> with a single-level indexing. Each time is use <code>reset_index()</code> it created some new (index?) column, and using <code>set_index('index')</code> creates a two-level column indexing that I don't need.</p>
  
  <p>I can imagine there area many corresponding cases, so sorry in advance if it already was answered somewhere, but so far I have not find the solution. Any help would be appreciated.</p>