title: How to concat docx file in python?
body: <p>Below is my code:</p>
  <pre><code> v_excel= []
   for root, dirs, files in os.walk(paths):
       for t in files:
           if t.endswith('.xlsx'):   
               df = pd.read_excel(os.path.join(paths,t), header=None, index_col=False)
               v_excel.append(df)
  
  conc = pd.concat(v_excel, axis=1, ignore_index=True)    
  </code></pre>
  <p>conc output:</p>
  <pre><code>#after appending two excel files i can successively concat the files and put it in 
  #seperate column
  
  column1   column2
  data1     data1 
  data2     data2
  data3     data3
  data3     data4
  
  #column 1 is from excel file 1 and column2 from excel file 2
  </code></pre>
  <p>How to do this for docx as i did for excel ?</p>
  <pre><code>if t.endswith('.docx'):
      #for c,z in enumerate(t):
          v_doc.append(Document(t))  # &lt;-----how to put this in df and concat according to 
                                     #       docx file as i have done with excel ?
  </code></pre>
  <p>docx contains:
  #docx contains dummy text's !!!</p>
  <pre><code>#docx1 contains:
     
  data1
  data2
  data3
  data4
  
  #docx2 contains:
     
  data5
  data6
  data7
  data8
  </code></pre>
  <p>i want to save the content of docx files to columns of excel. docx 1 content to column 1 of excel and docx 2 to column 2 of same excel.</p>
  <p>Hope i get some response. Thank you in advance.</p>