Skip to content

estimate_coefficient method returns different variable types based on if condition #261

Closed
@christopher-wild

Description

@christopher-wild

Describe the bug
The estimate_coefficient method in estimators.py can either return a list of pandas Series or a list of numpy floats based on which if condition is met.

Expected behavior
Ideally only Series would be returned from this method.

Additional context
Unit tests will need fixing as well as they rely on both data types. This change will facilitate the tidying of the method.

Metadata

Metadata

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