import re
import csv
import pandas as pd
data=pd.read_csv('/root/divination.csv')
text=data.text
text=list(text)
title=[]
deciphering=[]
content=[]
for imp in text:
temp=re.split(' ',imp)
num=len(temp)-9
title.append(temp[0]+temp[1]+temp[2]+'\n'+temp[3]+'\n'+temp[4])
deciphering.append(temp[5]+'\n'+temp[6]+'\n'+temp[7])
content_temp='' x=1
while x<num:
content_temp=content_temp+temp[7+x]
x=x+1
content.append(content_temp)
divation_data=pd.DataFrame({'title':title,'deciphering':deciphering,'content':content})