# import IPython from IPython.display import display # lunar1.py header import pandas as pd import glob # lunar1.py text_paths = glob.glob('data/ocu2/*.txt') texts = [] for text_path in text_paths: text = open(text_path, 'r').read() # text = text.split('\n') # modified text = text.split(',') title = text[3] # added # title = text[2] # modified text = ' '.join(text[8:]) texts.append(text) news_ss = pd.Series(texts) display(news_ss.head()) # display(news_ss)