Data Frame: import numpy as np import pandas as pd np.random.seed(1) import datetime today = datetime.date.today() someday = datetime.date(2016, 1, 1) diff = today - someday rows,cols = diff.days,6...


Data Frame: import numpy as np
import pandas as pd
np.random.seed(1)
import datetime
today = datetime.date.today()
someday = datetime.date(2016, 1, 1)
diff =  today - someday
rows,cols = diff.days,6
data = np.random.rand(rows,cols)
tidx = pd.date_range('2016-01-01', periods=rows, freq='D')
data_frame = pd.DataFrame(data, columns=['a','b','c','d','e','f'], index=tidx)
print(data_frame)



Question - Show the first 30 rows of your data (using a Pandas data frame function).




Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here