0

So I am using python's numpy and I am trying to generate a list 50 random generated variables, each a 100 long.

import numpy as np
randn = np.random.randn
var1 = Series(randn(100))

Trying to do two things:

1st) Trying to create the 100 variables in a loop. Attaching the index of each number to the string "var", so var1, var2, var3 How do you combine a string and the index variable in a loop?

2) Bind them together into a large matrix/dataframe.

Thank you!

jessica
  • 1,325
  • 2
  • 21
  • 35

0 Answers0