Skip to content

Instantly share code, notes, and snippets.

@jomartin93
jomartin93 / generate_L_size_csv.py
Created February 20, 2023 02:00 — forked from momota/generate_L_size_csv.py
Generate a large size of CSV file was filled random values. This script generates around 250MB size of the file. You can adjust two parameters `row` and `col` to generate the file which has desirable size.
import csv
import random
# 1000000 and 52 == roughly 1GB (WARNING TAKES a while, 30s+)
rows = 1000000
columns = 52
def generate_random_row(col):
a = []
l = [i]