Unverified Commit 272e80af authored by ishres19's avatar ishres19 Committed by GitHub
Browse files

Add files via upload

parent d1b57648
import pandas as pd
import os
def append_files():
path_of_directory = '/Users/irisa/senior_capstone_sentiment_analysis/monthly_tweets_dataframe/Textblob_analysis/'
df1 = pd.DataFrame()
for csv_file in os.listdir(path_of_directory):
if csv_file.endswith('.csv'):
file1 = pd.read_csv(csv_file)
if df1.empty:
df1 = file1
df1 = pd.concat([df1, file1])
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment