Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

numpy linspace of dates

import pandas as pd

start = pd.Timestamp('2015-07-01')
end = pd.Timestamp('2015-08-01')
t = np.linspace(start.value, end.value, 100)
t = pd.to_datetime(t)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #numpy #linspace #dates
ADD COMMENT
Topic
Name
6+8 =