Fix unsupported-assignment-operation

This commit is contained in:
Artem Veremey
2021-11-23 16:41:18 -08:00
parent 13767e3275
commit b045ab8efe
2 changed files with 5 additions and 0 deletions

View File

@@ -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)

View File

@@ -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