Convert numpy array to pandas dataframe

前端 未结 3 1999
梦如初夏
梦如初夏 2020-12-14 11:42

I have a numpy array of size 31x36 and i want to transform into pandas dataframe in order to process it. I am trying to convert it using the following code:

3条回答
  •  感动是毒
    2020-12-14 12:29

    In addition to the above answer,range(1, X) describes the set of numbers from 1 up to X-1 inclusive. You need to use range(1, 32) and range(1, 37) to do what you describe.

提交回复
热议问题