Last active
April 5, 2023 20:59
-
-
Save karakanb/2753cc2d55d10e88d3fa87197f110ac4 to your computer and use it in GitHub Desktop.
gist for generating a fake data to help the question: https://www.reddit.com/r/dataengineering/comments/12cehg3/alternative_to_excel_for_large_data_processing/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
months = 3 | |
every_n_seconds = 5 | |
points = [] | |
for i in range(months * 30 * 24 * 60 * 60 // every_n_seconds): | |
points.append([i, random.randint(1, 100)]) | |
with open("data.csv", "w") as f: | |
f.write("time,value \n") | |
for point in points: | |
f.write(f"{point[0]},{point[1]} \n") | |
print("Done!") | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment