So what I want to accomplish is that every time in my dataframe i find a line which is missing the date and the rest of the first five columns, copy the values of the row above it. Example:
0| Date | Name | Amount | Address
1| 12/04/2018| Pepe | $1.00 | Avenue 1
2| NaT | NaN | NaN | NaN (In this line i need the values of the line above)
3| 1/04/2018 | Tito | $3.00 | Avenue 2
.
for file in files:
fileName = os.path.splitext(file)[0]
if fileName == 'xxxxxxx (copy)':
df = pd.read_excel(file)
for index, row in df.iterrows():
if pd.isna(df['Date'] 'And the rest of the 5 columns'):
#Copy the values of the line above it