Skip to content

dropna in jan_adjustment will remove all values in row #34

Description

@pricemg

adjusted = adjusted.dropna()

The above line in the function means if passing in a dataframe with the following format

date col1 col2
2019-01-01 101 NaN
... ... ...
2019-05-01 104 NaN
2019-06-01 103 100
... ... ...
2020-01-01 101 102

(i.e. col2 timeseries starts later than col1 ) then jan_adjustment will drop the entire row for 2019-01-01.

Not sure on the correct behaviour, but anecdotally removing the dropna seems to work well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions