text_plain_output_1.png
import os

import os

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import numpy as np
import pandas as pd
import os

currr_dir = '../input/'
all_headlines = []
x = 0
for filename in os.listdir(currr_dir):
    if 'Articles' in filename:
        if x == 0:
            print(filename)
        article_df = pd.read_csv(currr_dir + filename)
        if x == 0:
            print(article_df.shape)
            print(article_df.columns)
            print(article_df.head(5))
            print(article_df.tail(5))
        all_headlines.extend(list(article_df.headline.values))
        if x == 0:
            print(article_df.headline)
            print(article_df.headline.values)
        x = 1
        break
all_headlines = [h for h in all_headlines if h != 'Unknown']
print(len(all_headlines))
print(all_headlines[:5])