numpy, named columns

前端 未结 2 1189
天涯浪人
天涯浪人 2020-12-31 02:06

Simple question about numpy:

I load 100 values to a vector a. From this vector, I want to create an array A with 2 columns, where

2条回答
  •  再見小時候
    2020-12-31 02:23

    I know this is an old question, but a more recently available option would be to try using pandas. The DataFrame type is designed for structured data like this, where columns are named and can be of different types.

提交回复
热议问题