User Profile
Collapse
-
I'm fairly new to Python (programming) so I don't feel all that comfortable creating classes right now. Thanks so much for your input and suggestions. -
I starting off using a list of lists. However, I need to pass pairs of vectors (a date column along with a float column) into another function for processing.
In a numpy array, this consist of:
Code:numpyArray[:,0:2]
Leave a comment:
-
Thanks bvdet!
If have different types in each column, (say of string() and float()) is there any easy way for me to use the map functionality in the list comprehension you provided to account for the different data types?
Thanks for your help!Leave a comment:
-
Import .csv to numpy instead of list to numpy
Currently when I import a data file, I create a list, and then use theCode:numpy.array(lst)
However, ideally I would like to not have to use a transition data type before converting it to a numpy array (and import the .csv file directly into a numpy array).
I have tried theCode:numpy.genfromtext()
No activity results to display
Show More
Leave a comment: