econmethods 2.3__tar.gz → 2.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: econmethods
3
- Version: 2.3
3
+ Version: 2.5
4
4
  Summary: A python package implementing various econometrical tests and estimators
5
5
  Home-page: https://github.com/NaturionBG/econmethods
6
6
  Author: NaturionBG
@@ -411,8 +411,12 @@ class FECM:
411
411
 
412
412
  def build_FE(self) -> pd.DataFrame:
413
413
  lr = self.__lr_df.copy(deep=True)
414
- for i, unit in enumerate(lr.SpUnit.unique()[1:], start=1):
415
- lr[f'd{i}'] = np.where(lr.SpUnit == unit, 1, 0)
414
+ if self.__lr_c:
415
+ for i, unit in enumerate(lr.SpUnit.unique()[1:], start=1):
416
+ lr[f'd{i}'] = np.where(lr.SpUnit == unit, 1, 0)
417
+ else:
418
+ for i, unit in enumerate(lr.SpUnit.unique(), start=1):
419
+ lr[f'd{i}'] = np.where(lr.SpUnit == unit, 1, 0)
416
420
  return lr
417
421
 
418
422
  def __estimate_lr(self) -> pd.DataFrame:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: econmethods
3
- Version: 2.3
3
+ Version: 2.5
4
4
  Summary: A python package implementing various econometrical tests and estimators
5
5
  Home-page: https://github.com/NaturionBG/econmethods
6
6
  Author: NaturionBG
@@ -5,7 +5,7 @@ with open('README.md', 'r') as f:
5
5
 
6
6
  setup(
7
7
  name = 'econmethods',
8
- version = 'v2.3',
8
+ version = 'v2.5',
9
9
  description='A python package implementing various econometrical tests and estimators',
10
10
  packages = find_packages(),
11
11
  long_description=long_desc,
File without changes
File without changes