import pandas as pd import numpy as np from csv import writer import time for i in range(1000): num = np.random.normal() with open('Book2.csv' , 'a+', newline='') as fd: csv_writer = writer(fd) csv_writer.writerow([num]) print(num) fd.close() time.sleep(10)
FROM python RUN pip install pandas WORKDIR /mydata COPY DataGen.py ./ CMD python DataGen.py
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)