Skip to content

CH8 np.diff uses n as if it is the number of periods to difference, but it actually differences n times. #10

Description

@jcurtiswebb

This issue occurs both in the chapter and in the exercises. n is used to attempt to create a seasonal difference, but it is actually differencing the time series n times.

From the numpy documentation:

parameter n int, optional
The number of times values are differenced. If zero, the input is returned as-is.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions