How do I create a pandas dataframe with datetime as index, and random values for a column. Currently, I have this:
from datetime import datetime, timedelta
import pandas as pd import numpy as np df = pd.DataFrame(np.random.randint(0,30,size=10), columns=["Random"], index=pd.date_range("20180101", periods=10))