Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- filenames = glob.glob(path + "/*.csv")
- df = []
- for filename in filenames:
- df.append(pd.read_csv(filename))
- frame = pd.concat(df)
- header = frame.iloc[0]
- frame2 = df[1:]
- frame2.rename(columns = header)
- 'list' object has no attribute 'rename'
- type(frame)
- pandas.core.frame.DataFrame
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement