Skip to content

Commit

Permalink
Merge 7f37ffd into 119a5a9
Browse files Browse the repository at this point in the history
  • Loading branch information
tailaiw committed Mar 9, 2020
2 parents 119a5a9 + 7f37ffd commit a53c34d
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
# The short X.Y version.
version = "0.6"
# The full version, including alpha/beta/rc tags.
release = "0.6.0-dev.24+pr.90"
release = "0.6.0-dev.25+pr.91"

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down
2 changes: 1 addition & 1 deletion docs/releasehistory.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Version 0.6.0-dev
- Re-designed the API of `adtk.visualization.plot` (0.6.0-dev.20-pr.80)
- Added `Black` and `isort` to developer requirement and CI/CD check (0.6.0-dev.21-pr.88)
- Added consistency check between training and testing inputs in multivariate models (0.6.0-dev.23+pr.89)
- Improved time index check in time-dependent models (0.6.0-dev.24+pr.90)
- Improved time index check in time-dependent models (0.6.0-dev.24+pr.90, 0.6.0-dev.25+pr.91)

Version 0.5.5 (Feb 24, 2020)
===================================
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = adtk
version = 0.6.0-dev.24+pr.90
version = 0.6.0-dev.25+pr.91
author = Arundo Analytics, Inc.
maintainer = Tailai Wen
maintainer_email = tailai.wen@arundo.com
Expand Down
2 changes: 1 addition & 1 deletion src/adtk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
"""

__version__ = "0.6.0-dev.24+pr.90"
__version__ = "0.6.0-dev.25+pr.91"
4 changes: 3 additions & 1 deletion src/adtk/_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,9 @@ def _predict(self, df: pd.DataFrame) -> Union[pd.Series, pd.DataFrame]:
self._cols, list(set(self._cols) - set(df.columns))
)
)
df_copy = df.loc[:, self._cols].copy()
df_copy = (
df.loc[:, self._cols].copy() if self._cols else df.copy()
) # in a customized hd model that doesn't need fit, self._cols is empty
predicted = self._predict_core(df_copy)
else:
raise TypeError("Input must be a pandas DataFrame.")
Expand Down

0 comments on commit a53c34d

Please sign in to comment.