Skip to main content
Tweeted twitter.com/StackMma/status/757282910605078528
added 10 characters in body
Source Link

I'm new to MathematicaMathematica, and while this is potentially quite easy, I'm having difficulty using TimeObjectsTimeObjects in the EventSeriesEventSeries function. After pulling out a column from an original dataset which had a series of time values, I then applied Count as Count@OriginalCount @ Original which gave me a table akin to:

Dataset[<|
    DateObject[{2016, 1, 1}, TimeObject[{12, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 26,
    DateObject[{2016, 1, 1}, TimeObject[{01, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 364, 
    DateObject[{2016, 1, 1}, TimeObject[{02, 00, 0.}, TimeZone -> 10.], 
        TimeZone -> 10.] -> 16|>]

My question is 2-fold.

  1. How do I pass that dataset to the EventSeries function, to be able to do a TimeSeries-esque plot? I'm finding it particularly difficult to find anything that references passing TimeObjectsTimeObjects, hence the question.

  2. Given that I am new to mathematicaMathematica, my second question is more conceptually, about the easiest way to pass multiple lists (or as I would previously call them, columns of a datasetDataset) to a function?

I'm new to Mathematica and while this is potentially quite easy, I'm having difficulty using TimeObjects in the EventSeries function. After pulling out a column from an original dataset which had a series of time values, I then applied Count as Count@Original which gave me a table akin to:

Dataset[<|
    DateObject[{2016, 1, 1}, TimeObject[{12, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 26,
    DateObject[{2016, 1, 1}, TimeObject[{01, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 364, 
    DateObject[{2016, 1, 1}, TimeObject[{02, 00, 0.}, TimeZone -> 10.], 
        TimeZone -> 10.] -> 16|>]

My question is 2-fold.

  1. How do I pass that dataset to the EventSeries function, to be able to do a TimeSeries-esque plot? I'm finding it particularly difficult to find anything that references passing TimeObjects hence the question.

  2. Given that I am new to mathematica, my second question is more conceptually, about the easiest way to pass multiple lists (or as I would previously call them, columns of a dataset) to a function?

I'm new to Mathematica, and while this is potentially quite easy, I'm having difficulty using TimeObjects in the EventSeries function. After pulling out a column from an original dataset which had a series of time values, I then applied Count as Count @ Original which gave me a table akin to:

Dataset[<|
    DateObject[{2016, 1, 1}, TimeObject[{12, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 26,
    DateObject[{2016, 1, 1}, TimeObject[{01, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 364, 
    DateObject[{2016, 1, 1}, TimeObject[{02, 00, 0.}, TimeZone -> 10.], 
        TimeZone -> 10.] -> 16|>]

My question is 2-fold.

  1. How do I pass that dataset to the EventSeries function, to be able to do a TimeSeries-esque plot? I'm finding it particularly difficult to find anything that references passing TimeObjects, hence the question.

  2. Given that I am new to Mathematica, my second question is more conceptually, about the easiest way to pass multiple lists (or as I would previously call them, columns of a Dataset) to a function?

Source Link

Using Dataset with TimeObjects in EventSeries

I'm new to Mathematica and while this is potentially quite easy, I'm having difficulty using TimeObjects in the EventSeries function. After pulling out a column from an original dataset which had a series of time values, I then applied Count as Count@Original which gave me a table akin to:

Dataset[<|
    DateObject[{2016, 1, 1}, TimeObject[{12, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 26,
    DateObject[{2016, 1, 1}, TimeObject[{01, 00, 0.}, TimeZone -> 10.],
        TimeZone -> 10.] -> 364, 
    DateObject[{2016, 1, 1}, TimeObject[{02, 00, 0.}, TimeZone -> 10.], 
        TimeZone -> 10.] -> 16|>]

My question is 2-fold.

  1. How do I pass that dataset to the EventSeries function, to be able to do a TimeSeries-esque plot? I'm finding it particularly difficult to find anything that references passing TimeObjects hence the question.

  2. Given that I am new to mathematica, my second question is more conceptually, about the easiest way to pass multiple lists (or as I would previously call them, columns of a dataset) to a function?