I am running into this warning in my Jupyter notebook and I am relatively new to python and coding in general. Any help would be appreciated :)
Warning/Error:
FutureWarning: The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.
Code causing the error:
dataCollection = pd.DataFrame()
for file in list_of_files:
procData = pd.read_table(file, header=None, sep='\s+')
procData.columns = columns
procData['subject_id'] = int(file[-5])
dataCollection = dataCollection.append(procData, ignore_index=True)
dataCollection.reset_index(drop=True, inplace=True)
dataCollection.head()
The output I am expecting would be a dataframe table with column headings.