Skip to content

Splitting dataframe into pre-post is inconsistent with covid example #273

@rlaker

Description

@rlaker

In the COVID excess deaths example, the data is split into pre and post treatment with

self.datapre = data[data.index <= self.treatment_time]
self.datapost = data[data.index > self.treatment_time]

However, when inspecting result.datapre we see that 2020-01-01 is included with the label pre=False

image

If 2020-01-01 should be in the post set, as the df says, then the splitting should be changed to:

self.datapre = data[data.index < self.treatment_time]
self.datapost = data[data.index >= self.treatment_time]

If it should be in the pre set, then deaths_and_temps_england_wales.csv needs to be updated so that pre=True for this date

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