title: Need help in importing data from pdfplumber to .csv file
body: <h1>I used pdfplumber to extract text from pdfs but when I tried to import the data using to_csv throwing #me an error. Need help in importing the data to .csv</h1>
  
  <pre><code>import pdfplumber
  import pandas as pd
  import numpy as np
  import os
  import re
  from collections import OrderedDict
  
  pdf = pdfplumber.open('C:/Users/Desktop/Mydata.pdf')
  page = pdf.pages[1-76]
  text = page.extract_text()
  text
  print(text)
  
  
  
  text2 = pd.DataFrame([text])
  
  text2.to_csv("C:\\Users\\Desktop\\MyPDFData\\converted_text.csv")
  </code></pre>
  
  <h1>Not getting the data in the imported file just got an empty file</h1>