title: How do I delete columns from numerous tables/dataset collections with Python?
body: <p>Essentially, I need to know how to change this dataset collection output that is shown here:</p>
  <pre><code>   A  B  C
  0  2  1  5
  1  3  2  3
  2  1  3  4
  3  4  4  4
  
     A  B  C
  0  2  1  5
  1  3  2  3
  2  1  3  4
  3  4  4  4
  4  5  5  5
  
     A  B  C  D
  0  2  1  5  1
  1  3  2  3  2
  2  1  3  4  3
  3  4  4  4  4
  4  5  5  5  5
  </code></pre>
  <p>to this dataset collection, keep in mind that I essentially am deleting column B in the first and second tables:</p>
  <pre><code>   A  C
  0  2  5
  1  3  3
  2  1  4
  3  4  4
  
     A  C
  0  2  5
  1  3  3
  2  1  4
  3  4  4
  4  5  5
  
     A  B  C  D
  0  2  1  5  1
  1  3  2  3  2
  2  1  3  4  3
  3  4  4  4  4
  4  5  5  5  5
  </code></pre>
  <p>With this code:</p>
  <pre><code>import pandas as pd
  
  df = pd.DataFrame({'A': [2,3,1],
                    'B': [1,2,3],
                    'C': [5,3,4]})
  df1 = pd.DataFrame({'A': [4],
                    'B': [4],
                    'C': [4]})
  df = df.append(df1)
  df = df.reset_index(drop=True)
  print(df)
  
  df.loc[df.last_valid_index() + 1] = [5,5,5]
  print()
  print(df)
  
  df2 = pd.DataFrame({'D': [1,2,3,4,5]})
  
  df = pd.DataFrame.join(df,df2)
  print()
  print(df)
  </code></pre>
  <p>Thanks in advance for any help. Please let me know if you need more clarification on this issue. (I am typing this because it is giving me errors with all of the code and just a bit of regular text.)</p>