Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Python
how to convert pandas series to 2d numpy array
Khan Zubair
Programming language:
Python
2021-06-21 23:34:16
0
Q:
how to convert pandas series to 2d numpy array
Sepia
Code:
Python
2021-07-01 10:40:37
a = np.array(s.values.tolist()) print (a) [[ 0. 0.] [ 0. 0.] [ 0. 0.] [ 0. 0.] [ 0. 0.]]
0
Tags
array
con
how
pandas
Related
numpy generate random 2d array
python initialize a 2d array
python print 2d array as table
convert dataframe to numpy array
python make 2d array of zeros
numpy convert 1d array to 2d
numpy 2d slicing
array 2d to 1d python
python convert between list numpy array and pandas series
python append row to 2d array
dataframe object to numpy array
join two numpy 2d array
python append to 2d array
initialise a 2d array python
how to address a column in a 2d array python
New to Communities?
Join the community