mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Fix unsupported-assignment-operation
This commit is contained in:
@@ -468,6 +468,8 @@ class Coin:
|
||||
df.replace({0: ""}, inplace=True)
|
||||
df = df.fillna("")
|
||||
df.columns = ["Metric", "Value"]
|
||||
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
df["Metric"] = df["Metric"].apply(
|
||||
lambda x: replace_underscores_in_column_names(x)
|
||||
if isinstance(x, str)
|
||||
|
||||
@@ -296,7 +296,10 @@ def get_all_contract_platforms() -> pd.DataFrame:
|
||||
contract_platforms = session.make_request(session.ENDPOINTS["contract_platforms"])
|
||||
df = pd.DataFrame(contract_platforms).reset_index()
|
||||
df.columns = ["index", "platform_id"]
|
||||
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
df["index"] = df["index"] + 1
|
||||
|
||||
return df
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user