Use numpy.random.choice and if necessary convert dates by to_datetime : df = pd.DataFrame({ 'A':list('abcdef'), 'B':[4,5,4,5,5,4], }) ...
確定! 回上一頁