Answers for "create empty files python"

6

python os make empty file

open(x, 'a').close()
Posted by: Guest on May-12-2020
0

create empty csv file in python

import pandas as pd
df = pd.DataFrame(list())
df.to_csv('empty_csv.csv')
Posted by: Guest on July-20-2020

Python Answers by Framework

Browse Popular Code Answers by Language