Skip to content

Commit

Permalink
Fix ec macro (#2689)
Browse files Browse the repository at this point in the history
* Added default architecture

* Added custom workflow

* Added fixes

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Improved dicker_push.yml

* Handling for error

* undid docker changes

* Fixed tests
  • Loading branch information
colin99d authored Oct 3, 2022
1 parent 87fac96 commit 5f2360a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions openbb_terminal/helpers_denomination.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,12 @@ def transform(
def apply(
df: pd.DataFrame, source: DENOMINATION, target: DENOMINATION
) -> pd.DataFrame:
multiplier = get_denominations()[source] / get_denominations()[target]
df = df.astype(float)
return df.apply(
lambda series: series
if skipPredicate is not None and skipPredicate(series)
else series * (get_denominations()[source] / get_denominations()[target]),
else series * multiplier,
axis,
)

Expand All @@ -45,7 +47,7 @@ def apply(
)

if maxValue is None:
maxValue = df.max().max()
maxValue = df.max(numeric_only=True).max(numeric_only=True)

foundTargetDenomination = get_denomination(maxValue)

Expand Down

0 comments on commit 5f2360a

Please sign in to comment.