mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-01 15:01:18 +00:00
This commit is contained in:
@@ -647,7 +647,7 @@ def clean_metrics_df(data: pd.DataFrame, num: int, mask: bool = False) -> pd.Dat
|
||||
"""
|
||||
# iloc will fail if number is greater than number of columns
|
||||
num = min(num, data.shape[1])
|
||||
data = data.iloc[:, 0:num]
|
||||
data = data.iloc[:, 0:num].copy()
|
||||
|
||||
if mask:
|
||||
data = data.mask(data.astype(object).eq(num * ["None"])).dropna()
|
||||
|
||||
Reference in New Issue
Block a user