Skip to content

Instantly share code, notes, and snippets.

View harshavmb's full-sized avatar

Harshavardhan Musanalli harshavmb

View GitHub Profile
@momota
momota / generate_L_size_csv.py
Last active March 28, 2024 14:27
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]