Jan-02-2018, 10:25 PM
As far as I know you cannot go back to the beginning of a file with the csv package. One approach could be to write the complete header to a new file and append the data rows (read from the "body" file) right after it.
In CSV, how to write the header after writing the body?
|
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
[BeautifulSoup] Find </body>? | Winfried | 3 | 1,442 |
Jul-21-2023, 11:25 AM Last Post: Gaurav_Kumar |
|
Get html body of URL | rama27 | 6 | 3,569 |
Aug-03-2020, 02:37 PM Last Post: snippsat |
|
malformed header from script 'main.py': Bad header: * Serving Flask app "main" | anuragsapanbharat | 2 | 4,596 |
Jun-12-2019, 07:26 AM Last Post: anuragsapanbharat |
|
Is it possible to perform a PUT request by passing a req body instead of an ID | ary | 0 | 1,867 |
Feb-20-2019, 05:55 AM Last Post: ary |