When I download my CSV file from the FTP server and it contains ~200-500 rows my application works just fine, but when I download a CSV file from the FTP server with only ~1-200 rows I get the error: No columns to parse from file
The CSV contains the headers: "example1";"example2";"example3";"example4"
with rows looking like: "8481832";2022-30-06";GFBG21";4,00
with open(csv_filename, 'wb') as file:
ftp.retrbinary(f"RETR {csv_filename}", file.write)
file_data = pd.read_csv(csv_filename, sep=';', header=0)
Both files are fully identical to each other, just a different amount of rows
Does anyone know if this is a bug, or am i doing something wrong?