Changed to capital letter in output columns.

This commit is contained in:
Lasse Edfast 2021-03-04 11:38:13 +01:00
parent 238ffc21c4
commit fe265be3c0

View File

@ -17,7 +17,7 @@ df["seconds"] = df.duration.apply(
# Open and prepare file # Open and prepare file
with open("Music Report.csv", "a+") as f: with open("Music Report.csv", "a+") as f:
f.truncate(0) f.truncate(0)
f.write("title\tartist\tduration\n") f.write("Title\tArtist\tDuration\n")
# Sum the duration for all clips with the same title # Sum the duration for all clips with the same title
for title in df.groupby("title"): for title in df.groupby("title"):