How to Convert a one- dimensional series to a dataframe with 8 rows and 5 columns?

前端 未结 0 1860
无人共我
无人共我 2021-01-14 06:16

import pandas as pd import numpy as np

randint(low, high, size)

s = pd.Series(np.random.randint(1, 10, 40)) print(s) 0 6 1 8 2 2 3 7 4 7 5 9 6 9 7 7 8 2 9 2

相关标签:
回答
  • 消灭零回复
提交回复
热议问题