MaxManus
- 268
- 1
How do you make an arrey out of this list?
for X, H in zip(xarrey,harrey):
print "%.2f %.5f" % (X,H)
for X, H in zip(xarrey,harrey):
print "%.2f %.5f" % (X,H)
This discussion focuses on creating an array from a zipped list in Python. The user initially confuses Python lists with arrays, prompting clarification on the distinction. The provided code utilizes the SciPy library to import necessary functions and demonstrates how to generate a list of values using the normal distribution formula. The final output formats the zipped values of the xarray and harrey lists for display.
PREREQUISITESPython developers, data scientists, and anyone interested in statistical data visualization using Python.