mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-10 11:21:12 +00:00
rename 1Year column to fix returning as 1970-01-01
This commit is contained in:
@@ -91,7 +91,16 @@ def display_performance(
|
||||
Export data to csv,json,xlsx or png,jpg,pdf,svg file
|
||||
"""
|
||||
df_group = finviz_model.get_performance_data(group, sortby, ascend)
|
||||
df_group = df_group.rename(columns={"Name": ""})
|
||||
df_group = df_group.rename(
|
||||
columns={
|
||||
"Name": "",
|
||||
"Week": "1W",
|
||||
"Month": "1M",
|
||||
"3Month": "3M",
|
||||
"6Month": "6M",
|
||||
"1Year": "1Y",
|
||||
}
|
||||
)
|
||||
if df_group.empty:
|
||||
return
|
||||
print_rich_table(
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Week Month 3Month 6Month 1Year YTD Recom AvgVolume RelVolume Change Volume
|
||||
1W 1M 3M 6M 1Y YTD Recom AvgVolume RelVolume Change Volume
|
||||
0 Basic Materials 0.0303 0.0337 0.0721 0.1212 0.1058 0.0419 2.21 5.643900e+08 1.70 0.0070 9.613600e+08
|
||||
1 Communication Services 0.0637 -0.0258 -0.1031 -0.1558 -0.0248 -0.1145 1.88 7.649600e+08 1.78 0.0169 1.360000e+09
|
||||
2 Consumer Cyclical 0.1093 -0.0505 -0.0915 -0.1022 -0.0962 -0.1226 2.06 1.340000e+09 1.78 0.0256 2.390000e+09
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
Week Month 3Month 6Month 1Year YTD Recom AvgVolume RelVolume Change Volume
|
||||
1W 1M 3M 6M 1Y YTD Recom AvgVolume RelVolume Change Volume
|
||||
0 Basic Materials 0.0303 0.0337 0.0721 0.1212 0.1058 0.0419 2.21 5.643900e+08 1.70 0.0070 9.613600e+08
|
||||
1 Communication Services 0.0637 -0.0258 -0.1031 -0.1558 -0.0248 -0.1145 1.88 7.649600e+08 1.78 0.0169 1.360000e+09
|
||||
2 Consumer Cyclical 0.1093 -0.0505 -0.0915 -0.1022 -0.0962 -0.1226 2.06 1.340000e+09 1.78 0.0256 2.390000e+09
|
||||
|
||||
Reference in New Issue
Block a user