import pandas as pd
import numpy as np
import os
files = [file for file in os.listdir('./dataset')]
all_schedule_data = pd.DataFrame()
for file in files:
df = pd.read_csv("./dataset/"+file)
all_schedule_data = pd.concat([all_schedule_data, df])
all_schedule_data.to_csv("all_data.csv", index=False)
all_datas = pd.read_csv("all_data.csv")
all_datas.columns
'''
The problem part is the last line.
When I put 'all_datas.columns', this happens. Nothing is printed.

And when I put 'all_data.columns()', this error comes in.
I also did 'all_data.head()', but nothing is printed just like the first photo.
I followed the youtube video tutorial to build this code so the code is exactly the same except the file part as like the video. But in the video, he did 'all_data.head()' and he got some results. But for me, I didn't get any results. Just got the thing like the first photo as I explained above.
- I have no idea why I get the different results from the youtube video even I did all same.
- I don't know why the results are different when I put each all_datas.columns() and without ().
- Someday I may use all_datas.columns(), all_datas.values() etc. But I got errors so it would be a problem. How can I solve it and want to know why the error is happening.
Thank you for reading and if someone can help me out with this problem, I would be really appreciated it. Thank you:)