title: Creating dataframe from output and save the file as CSV
body: <p>I am trying to create a dataframe and save as csv.My code and output is given below: 
  CODE:</p>
  
  <pre><code>for dtags in html.find_all('div', attrs={'class':'wrap'}):
          for index, ptags in enumerate(dtags.find_all('p', attrs={'class':'partial_entry'})):
              if index == 0: #match the first element
                  x = ptags.text
                  z = print('Review:', x)
  </code></pre>
  
  <p>My Output is given below:
  OutPut:</p>
  
  <pre><code>Review: I went on a family trip and it was amazing, I hope to come back soon. The room was small but what can you expect from New York. It was close to many things and the staff was perfect.I will come back again soon.
  Review: Stayed here with my boyfriend for four nights, nice hotel. Didn’t have breakfast included so can’t comment on that. All staff very pleasant, rooms cleaned every day new towels every day. No complaints from us two. Wouldn’t come to New York again though. 
  Review: Stayed in this hotel for 4 nights over new year 2017. It is in a good location, a
  </code></pre>
  
  <p>Now I am using a code to create dataframe but I am unable to do so,my code to create dataframe is given below:</p>
  
  <pre><code>import pandas as pd
  results = []
  results.append(z)
  df = pd.DataFrame(results)
  print(df)
  </code></pre>
  
  <p>This code is not working fine.Need help to create a dataframe for my output and save it as CSV.</p>