Merge pull request #324 from DidierRLopes/fix-build

Fix build
This commit is contained in:
Artem Veremey
2021-04-09 08:03:09 -07:00
committed by GitHub
3 changed files with 8 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ API_REDDIT_USER_AGENT = os.getenv("GT_API_REDDIT_USER_AGENT") or "REPLACE_ME"
API_REDDIT_PASSWORD = os.getenv("GT_API_REDDIT_PASSWORD") or "REPLACE_ME"
# https://polygon.io
API_POLYGON_KEY = os.getenv("GT_API_POLYGON_KEY") or "pTx4m2fILimhK7YpR49Oa0DAec2bpnSG"
API_POLYGON_KEY = os.getenv("GT_API_POLYGON_KEY") or "REPLACE_ME"
# https://developer.twitter.com
API_TWITTER_KEY = os.getenv("GT_API_TWITTER_KEY") or "REPLACE_ME"

View File

@@ -125,7 +125,7 @@ def shareholders(l_args, s_ticker):
].apply(lambda x: long_number_format(x))
df_institutional_shareholders["Stake"] = df_institutional_shareholders[
"Stake"
].apply(lambda x: str("{:.2f}".format(100 * x)) + " %")
].apply(lambda x: str(f"{100 * x:.2f}") + " %")
print(df_institutional_shareholders.to_string(index=False))
print("")
@@ -142,7 +142,7 @@ def shareholders(l_args, s_ticker):
lambda x: long_number_format(x)
)
df_mutualfund_shareholders["Stake"] = df_mutualfund_shareholders["Stake"].apply(
lambda x: str("{:.2f}".format(100 * x)) + " %"
lambda x: str(f"{100 * x:.2f}") + " %"
)
print(df_mutualfund_shareholders.to_string(index=False))

View File

@@ -559,11 +559,11 @@ def independence(
result = bds(residuals, max_dim=6)
print("BDS Test")
print("Dim 2: z-static {:.4f} Prob {:.4f}".format(result[0][0], result[1][0]))
print("Dim 3: z-static {:.4f} Prob {:.4f}".format(result[0][1], result[1][1]))
print("Dim 4: z-static {:.4f} Prob {:.4f}".format(result[0][2], result[1][2]))
print("Dim 5: z-static {:.4f} Prob {:.4f}".format(result[0][3], result[1][3]))
print("Dim 6: z-static {:.4f} Prob {:.4f}".format(result[0][4], result[1][4]))
print(f"Dim 2: z-static {result[0][0]:.4f} Prob {result[1][0]:.4f}")
print(f"Dim 3: z-static {result[0][1]:.4f} Prob {result[1][1]:.4f}")
print(f"Dim 4: z-static {result[0][2]:.4f} Prob {result[1][2]:.4f}")
print(f"Dim 5: z-static {result[0][3]:.4f} Prob {result[1][3]:.4f}")
print(f"Dim 6: z-static {result[0][4]:.4f} Prob {result[1][4]:.4f}")
print("")