Last active
April 20, 2020 22:25
-
-
Save stephenbnicar/2d4033e6dfcf4299a9c5134e3734cbeb to your computer and use it in GitHub Desktop.
Create TimeArray from DataFrame
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Construct TimeArray from DataFrame | |
# Assumes DataFrame `datadf` with 213 observations | |
using TimeSeries | |
dates = collect(Date(1954, 12, 1):Dates.Month(3):Date(2007, 12, 1)) | |
datadf.timestamp = dates | |
datats = TimeArray(datadf, timestamp = :timestamp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment