facebook / facebook/prophet

Reading working day price data into time-series format

Aperta
#1,883 1 commento 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
20.4k
Fork
4.6k
Merge medio
19h 52m
PR unite (30g)
1

Descrizione

[price.csv](https://github.com/facebook/prophet/files/6385127/price.csv)

> library(prophet)
> df <- read.csv('price.csv', sep = ' ')
> str(df)
'data.frame': 1579 obs. of 2 variables:
$ data : chr "2015-01-02" "2015-01-05" "2015-01-06" "2015-01-07" ...
$ price: num 674 660 630 572 587 ...
> m <- prophet(df)
Error in fit.prophet(m, df, ...) :
Dataframe must have columns 'ds' and 'y' with the dates and values respectively.

I can't find why this doesn't work...-_-;
This data file contains working day price of a commodity.

I also want to know a simple way to read this data into a time-series, but,, as this data doesn't have weekend and holiday price s.. it makes me astray.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.