Skip to content

Commit

Permalink
Do not apply empty apply (#465)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored May 25, 2020
1 parent f11f9e4 commit f6275e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hvplot/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,8 @@ def process_derived_datetime_pandas(data, not_found, indexes=None):
index = data.axes[indexes.index(base_col)]
if isdate(index):
extra_cols[var] = getattr(index, dt_str)
data = data.assign(**extra_cols)
if extra_cols:
data = data.assign(**extra_cols)
not_found = [var for var in not_found if var not in extra_cols.keys()]

return not_found, data
Expand Down

0 comments on commit f6275e0

Please sign in to comment.