Skip to content

Instantly share code, notes, and snippets.

@kounoike
Created August 16, 2014 07:53
Show Gist options
  • Save kounoike/f02c8b90e868a5821851 to your computer and use it in GitHub Desktop.
Save kounoike/f02c8b90e868a5821851 to your computer and use it in GitHub Desktop.
# coding: utf-8
import numpy as np
list = np.random.randn(90000)
list[29996] += 20
list[56789] += 20
list[88888] += 20
list[89999] += 10
with open("test.csv", "w") as f:
f.write("data\n")
for d in list:
f.write("{0:f}\n".format(d))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment