From 3f3c61ab00e2c0c55df4d315d0a5eb099afd903e Mon Sep 17 00:00:00 2001 From: OpenBB Date: Sat, 22 Jul 2023 11:06:21 -0700 Subject: [PATCH] put spaces in columns for econ/performance and valuation and make sortby work --- openbb_terminal/economy/economy_controller.py | 68 +++++++++---------- openbb_terminal/economy/finviz_model.py | 23 +++---- .../test_get_performance_data.csv | 2 +- .../test_get_valuation_data.csv | 2 +- .../test_display_performance[False].txt | 24 +++---- .../test_display_performance[True].txt | 24 +++---- .../test_display_valuation[False].txt | 24 +++---- .../test_display_valuation[True].txt | 24 +++---- 8 files changed, 95 insertions(+), 96 deletions(-) diff --git a/openbb_terminal/economy/economy_controller.py b/openbb_terminal/economy/economy_controller.py index 5e082951328..a7df0b5e213 100644 --- a/openbb_terminal/economy/economy_controller.py +++ b/openbb_terminal/economy/economy_controller.py @@ -115,36 +115,36 @@ class EconomyController(BaseController): ] overview_options = ["indices", "usbonds", "glbonds", "currencies"] tyld_maturity = ["3m", "5y", "10y", "30y"] - valuation_sort_cols = [ - "Name", - "MarketCap", - "P/E", - "FwdP/E", - "PEG", - "P/S", - "P/B", - "P/C", - "P/FCF", - "EPSpast5Y", - "EPSnext5Y", - "Salespast5Y", - "Change", - "Volume", - ] - performance_sort_list = [ - "Name", - "Week", - "Month", - "3Month", - "6Month", - "1Year", - "YTD", - "Recom", - "AvgVolume", - "RelVolume", - "Change", - "Volume", - ] + valuation_sort_cols_dict = { + "Name": "Name", + "MarketCap": "Market Cap", + "P/E": "P/E", + "FwdP/E": "Fwd P/E", + "PEG": "PEG", + "P/S": "P/S", + "P/B": "P/B", + "P/C": "P/C", + "P/FCF": "P/FCF", + "EPSpast5Y": "EPS past 5Y", + "EPSnext5Y": "EPS next 5Y", + "Salespast5Y": "Sales past 5Y", + "Change": "Chage", + "Volume": "Volume", + } + performance_sort_dict = { + "Name": "Name", + "1W": "1W", + "1M": "1M", + "3M": "3M", + "6M": "6M", + "1Y": "1Y", + "YTD": "YTD", + "Recom": "Recom", + "AvgVolume": "Avg Volume", + "RelVolume": "Rel Volume", + "Change": "Change", + "Volume": "Volume", + } index_interval = [ "1m", "2m", @@ -2213,7 +2213,7 @@ class EconomyController(BaseController): "--sortby", dest="sortby", type=str, - choices=self.valuation_sort_cols, + choices=list(self.valuation_sort_cols_dict.keys()), default="Name", help="Column to sort by", ) @@ -2243,7 +2243,7 @@ class EconomyController(BaseController): ) finviz_view.display_valuation( group=ns_group, - sortby=ns_parser.sortby, + sortby=self.valuation_sort_cols_dict[ns_parser.sortby], ascend=ns_parser.reverse, export=ns_parser.export, sheet_name=" ".join(ns_parser.sheet_name) @@ -2275,7 +2275,7 @@ class EconomyController(BaseController): "-s", "--sortby", dest="sortby", - choices=self.performance_sort_list, + choices=list(self.performance_sort_dict.keys()), default="Name", help="Column to sort by", ) @@ -2304,7 +2304,7 @@ class EconomyController(BaseController): ) finviz_view.display_performance( group=ns_group, - sortby=ns_parser.sortby, + sortby=self.performance_sort_dict[ns_parser.sortby], ascend=ns_parser.reverse, export=ns_parser.export, sheet_name=" ".join(ns_parser.sheet_name) diff --git a/openbb_terminal/economy/finviz_model.py b/openbb_terminal/economy/finviz_model.py index 8281a7bfc28..8e28c209429 100644 --- a/openbb_terminal/economy/finviz_model.py +++ b/openbb_terminal/economy/finviz_model.py @@ -92,7 +92,7 @@ def get_valuation_data( try: group = GROUPS[group] df_group = valuation.Valuation().screener_view(group=group) - df_group.columns = [col.replace(" ", "").strip() for col in df_group.columns] + df_group.columns = [col.strip() for col in df_group.columns] df_group = df_group.sort_values(by=sortby, ascending=ascend) df_group.fillna("", inplace=True) @@ -100,7 +100,7 @@ def get_valuation_data( if get_current_user().preferences.USE_INTERACTIVE_DF: return df_group print(df_group.head()) - df_group["MarketCap"] = df_group["MarketCap"].apply( + df_group["Market Cap"] = df_group["Market Cap"].apply( lambda x: float(x.strip("B")) if x.endswith("B") else float(x.strip("M")) / 1000 @@ -146,18 +146,17 @@ def get_performance_data( df_group = performance.Performance().screener_view(group=group) df_group = df_group.rename( columns={ - "Perf Week": "Week", - "Perf Month": "Month", - "Perf Quart": "3Month", - "Perf Half": "6Month", - "Perf Year": "1Year", + "Perf Week": "1W", + "Perf Month": "1M", + "Perf Quart": "3M", + "Perf Half": "6M", + "Perf Year": "1Y", "Perf YTD": "YTD", - "Avg Volume": "AvgVolume", - "Rel Volume": "RelVolume", + "Avg Volume": "Avg Volume", } ) df_group.columns = [col.strip() for col in df_group.columns] - df_group["Week"] = df_group["Week"].apply(lambda x: float(x.strip("%")) / 100) + df_group["1W"] = df_group["1W"].apply(lambda x: float(x.strip("%")) / 100) df_group = df_group.sort_values(by=sortby, ascending=ascend) df_group.fillna("", inplace=True) @@ -166,9 +165,9 @@ def get_performance_data( return df_group df_group["Volume"] = df_group["Volume"] / 1_000_000 - df_group["AvgVolume"] = df_group["AvgVolume"] / 1_000_000 + df_group["Avg Volume"] = df_group["Avg Volume"] / 1_000_000 df_group = df_group.rename( - columns={"Volume": "Volume [1M]", "AvgVolume": "AvgVolume [1M]"} + columns={"Volume": "Volume [1M]", "Avg Volume": "Avg Volume [1M]"} ) return df_group diff --git a/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_performance_data.csv b/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_performance_data.csv index 0b83def096c..c2696c55dd5 100644 --- a/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_performance_data.csv +++ b/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_performance_data.csv @@ -1,4 +1,4 @@ -,Name,Week,Month,3Month,6Month,1Year,YTD,Recom,AvgVolume,RelVolume,Change,Volume +,Name,1W,1M,3M,6M,1Y,YTD,Recom,Avg Volume,Rel Volume,Change,Volume 0,Basic Materials,0.015300000000000001,0.0603,-0.0966,-0.07629999999999999,-0.1213,-0.11689999999999999,2.2,496760000.0,1.0,0.0123,198760000.0 1,Communication Services,0.0297,0.006500000000000001,-0.0002,-0.18309999999999998,-0.26780000000000004,-0.2419,1.94,766430000.0,1.25,0.0109,384640000.0 2,Consumer Cyclical,0.0213,0.10189999999999999,0.0603,-0.1272,-0.192,-0.20809999999999998,2.11,1380000000.0,1.53,0.013500000000000002,848690000.0 diff --git a/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_valuation_data.csv b/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_valuation_data.csv index a1a35cd6d99..edcaa0a455c 100644 --- a/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_valuation_data.csv +++ b/tests/openbb_terminal/economy/csv/test_finviz_model/test_get_valuation_data.csv @@ -1,4 +1,4 @@ -,Name,MarketCap,P/E,FwdP/E,PEG,P/S,P/B,P/C,P/FCF,EPSpast5Y,EPSnext5Y,Salespast5Y,Change,Volume +,Name,Market Cap,P/E,Fwd P/E,PEG,P/S,P/B,P/C,P/FCF,EPS past 5Y,EPS next 5Y,Sales past 5Y,Change,Volume 0,Basic Materials,1864.89B,8.8,10.57,0.88,1.25,1.86,10.9,15.01,0.2824,0.0999,0.1259,0.0123,198760000.0 1,Communication Services,6295.06B,18.52,15.86,1.27,2.64,2.75,12.65,33.58,0.20600000000000002,0.1461,0.1942,0.0109,384640000.0 2,Consumer Cyclical,6695.57B,24.52,13.15,0.96,0.98,3.26,10.64,46.69,0.3063,0.2551,0.22469999999999998,0.013500000000000002,848690000.0 diff --git a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[False].txt b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[False].txt index c5e93bbbce3..9edbbc68906 100644 --- a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[False].txt +++ b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[False].txt @@ -1,12 +1,12 @@ - 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 -3 Consumer Defensive 0.0475 -0.0126 -0.0218 0.0161 0.0506 -0.0392 2.23 4.557200e+08 1.71 0.0063 7.792700e+08 -4 Energy -0.0182 0.0352 0.2454 0.3398 0.3865 0.2319 2.23 8.874100e+08 1.38 -0.0003 1.230000e+09 -5 Financial 0.0690 -0.0310 -0.0012 0.0172 0.0777 -0.0049 2.23 1.050000e+09 1.67 0.0059 1.750000e+09 -6 Healthcare 0.0669 0.0299 -0.0388 -0.0592 0.0399 -0.0565 2.05 1.420000e+09 1.66 0.0086 2.360000e+09 -7 Industrials 0.0541 0.0143 -0.0165 0.0164 0.0458 -0.0400 2.26 6.727100e+08 1.56 0.0062 1.050000e+09 -8 Real Estate 0.0291 0.0155 -0.0515 -0.0096 0.1091 -0.0902 2.22 3.552600e+08 1.98 0.0031 7.028400e+08 -9 Technology 0.0889 -0.0306 -0.0989 -0.0704 0.1030 -0.1294 1.98 1.650000e+09 1.91 0.0251 3.160000e+09 -10 Utilities 0.0090 0.0609 0.0065 0.0638 0.1145 -0.0122 2.32 1.613700e+08 2.25 -0.0063 3.625100e+08 + 1W 1M 3M 6M 1Y YTD Recom Avg Volume Rel Volume 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 +3 Consumer Defensive 0.0475 -0.0126 -0.0218 0.0161 0.0506 -0.0392 2.23 4.557200e+08 1.71 0.0063 7.792700e+08 +4 Energy -0.0182 0.0352 0.2454 0.3398 0.3865 0.2319 2.23 8.874100e+08 1.38 -0.0003 1.230000e+09 +5 Financial 0.0690 -0.0310 -0.0012 0.0172 0.0777 -0.0049 2.23 1.050000e+09 1.67 0.0059 1.750000e+09 +6 Healthcare 0.0669 0.0299 -0.0388 -0.0592 0.0399 -0.0565 2.05 1.420000e+09 1.66 0.0086 2.360000e+09 +7 Industrials 0.0541 0.0143 -0.0165 0.0164 0.0458 -0.0400 2.26 6.727100e+08 1.56 0.0062 1.050000e+09 +8 Real Estate 0.0291 0.0155 -0.0515 -0.0096 0.1091 -0.0902 2.22 3.552600e+08 1.98 0.0031 7.028400e+08 +9 Technology 0.0889 -0.0306 -0.0989 -0.0704 0.1030 -0.1294 1.98 1.650000e+09 1.91 0.0251 3.160000e+09 +10 Utilities 0.0090 0.0609 0.0065 0.0638 0.1145 -0.0122 2.32 1.613700e+08 2.25 -0.0063 3.625100e+08 diff --git a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[True].txt b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[True].txt index c5e93bbbce3..9edbbc68906 100644 --- a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[True].txt +++ b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_performance[True].txt @@ -1,12 +1,12 @@ - 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 -3 Consumer Defensive 0.0475 -0.0126 -0.0218 0.0161 0.0506 -0.0392 2.23 4.557200e+08 1.71 0.0063 7.792700e+08 -4 Energy -0.0182 0.0352 0.2454 0.3398 0.3865 0.2319 2.23 8.874100e+08 1.38 -0.0003 1.230000e+09 -5 Financial 0.0690 -0.0310 -0.0012 0.0172 0.0777 -0.0049 2.23 1.050000e+09 1.67 0.0059 1.750000e+09 -6 Healthcare 0.0669 0.0299 -0.0388 -0.0592 0.0399 -0.0565 2.05 1.420000e+09 1.66 0.0086 2.360000e+09 -7 Industrials 0.0541 0.0143 -0.0165 0.0164 0.0458 -0.0400 2.26 6.727100e+08 1.56 0.0062 1.050000e+09 -8 Real Estate 0.0291 0.0155 -0.0515 -0.0096 0.1091 -0.0902 2.22 3.552600e+08 1.98 0.0031 7.028400e+08 -9 Technology 0.0889 -0.0306 -0.0989 -0.0704 0.1030 -0.1294 1.98 1.650000e+09 1.91 0.0251 3.160000e+09 -10 Utilities 0.0090 0.0609 0.0065 0.0638 0.1145 -0.0122 2.32 1.613700e+08 2.25 -0.0063 3.625100e+08 + 1W 1M 3M 6M 1Y YTD Recom Avg Volume Rel Volume 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 +3 Consumer Defensive 0.0475 -0.0126 -0.0218 0.0161 0.0506 -0.0392 2.23 4.557200e+08 1.71 0.0063 7.792700e+08 +4 Energy -0.0182 0.0352 0.2454 0.3398 0.3865 0.2319 2.23 8.874100e+08 1.38 -0.0003 1.230000e+09 +5 Financial 0.0690 -0.0310 -0.0012 0.0172 0.0777 -0.0049 2.23 1.050000e+09 1.67 0.0059 1.750000e+09 +6 Healthcare 0.0669 0.0299 -0.0388 -0.0592 0.0399 -0.0565 2.05 1.420000e+09 1.66 0.0086 2.360000e+09 +7 Industrials 0.0541 0.0143 -0.0165 0.0164 0.0458 -0.0400 2.26 6.727100e+08 1.56 0.0062 1.050000e+09 +8 Real Estate 0.0291 0.0155 -0.0515 -0.0096 0.1091 -0.0902 2.22 3.552600e+08 1.98 0.0031 7.028400e+08 +9 Technology 0.0889 -0.0306 -0.0989 -0.0704 0.1030 -0.1294 1.98 1.650000e+09 1.91 0.0251 3.160000e+09 +10 Utilities 0.0090 0.0609 0.0065 0.0638 0.1145 -0.0122 2.32 1.613700e+08 2.25 -0.0063 3.625100e+08 diff --git a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[False].txt b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[False].txt index b77c1401764..ba08a991a54 100644 --- a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[False].txt +++ b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[False].txt @@ -1,12 +1,12 @@ - MarketCap P/E FwdP/E PEG P/S P/B P/C P/FCF EPSpast5Y EPSnext5Y Salespast5Y Change Volume -0 Basic Materials 2260.70B 11.05 14.06 0.74 1.63 2.30 13.15 20.31 0.3022 0.1501 0.1231 0.0070 9.613600e+08 -1 Communication Services 7417.63B 21.39 15.17 1.05 3.45 3.26 14.19 34.05 0.2059 0.2033 0.2022 0.0169 1.360000e+09 -2 Consumer Cyclical 7410.15B 25.88 14.36 1.14 1.10 3.56 10.19 41.54 0.2838 0.2265 0.2012 0.0256 2.390000e+09 -3 Consumer Defensive 3737.73B 24.83 21.23 2.68 1.39 4.09 20.36 43.20 0.0850 0.0925 0.0486 0.0063 7.792700e+08 -4 Energy 3488.00B 12.39 9.63 1.11 0.96 1.26 10.18 14.97 0.2792 0.1112 0.0878 -0.0003 1.230000e+09 -5 Financial 10142.30B 12.87 13.70 1.04 2.96 0.01 0.59 12.79 0.1888 0.1240 0.0734 0.0059 1.750000e+09 -6 Healthcare 7812.17B 24.97 15.52 2.22 2.23 3.66 12.91 29.47 0.1617 0.1123 0.1602 0.0086 2.360000e+09 -7 Industrials 4981.60B 23.34 17.07 1.56 2.02 4.00 13.74 32.77 0.1624 0.1492 0.0566 0.0062 1.050000e+09 -8 Real Estate 1786.12B 27.99 31.37 2.79 5.64 1.83 23.32 61.52 0.1051 0.1005 0.1014 0.0031 7.028400e+08 -9 Technology 14089.76B 30.43 22.63 1.76 5.14 4.53 16.32 35.65 0.2480 0.1731 0.1491 0.0251 3.160000e+09 -10 Utilities 1445.62B 26.13 3.29 3.71 1.82 1.42 32.47 65.99 0.0141 0.0704 0.0520 -0.0063 3.625100e+08 + Market Cap P/E Fwd P/E PEG P/S P/B P/C P/FCF EPS past 5Y EPS next 5Y Sales past 5Y Change Volume +0 Basic Materials 2260.70B 11.05 14.06 0.74 1.63 2.30 13.15 20.31 0.3022 0.1501 0.1231 0.0070 9.613600e+08 +1 Communication Services 7417.63B 21.39 15.17 1.05 3.45 3.26 14.19 34.05 0.2059 0.2033 0.2022 0.0169 1.360000e+09 +2 Consumer Cyclical 7410.15B 25.88 14.36 1.14 1.10 3.56 10.19 41.54 0.2838 0.2265 0.2012 0.0256 2.390000e+09 +3 Consumer Defensive 3737.73B 24.83 21.23 2.68 1.39 4.09 20.36 43.20 0.0850 0.0925 0.0486 0.0063 7.792700e+08 +4 Energy 3488.00B 12.39 9.63 1.11 0.96 1.26 10.18 14.97 0.2792 0.1112 0.0878 -0.0003 1.230000e+09 +5 Financial 10142.30B 12.87 13.70 1.04 2.96 0.01 0.59 12.79 0.1888 0.1240 0.0734 0.0059 1.750000e+09 +6 Healthcare 7812.17B 24.97 15.52 2.22 2.23 3.66 12.91 29.47 0.1617 0.1123 0.1602 0.0086 2.360000e+09 +7 Industrials 4981.60B 23.34 17.07 1.56 2.02 4.00 13.74 32.77 0.1624 0.1492 0.0566 0.0062 1.050000e+09 +8 Real Estate 1786.12B 27.99 31.37 2.79 5.64 1.83 23.32 61.52 0.1051 0.1005 0.1014 0.0031 7.028400e+08 +9 Technology 14089.76B 30.43 22.63 1.76 5.14 4.53 16.32 35.65 0.2480 0.1731 0.1491 0.0251 3.160000e+09 +10 Utilities 1445.62B 26.13 3.29 3.71 1.82 1.42 32.47 65.99 0.0141 0.0704 0.0520 -0.0063 3.625100e+08 diff --git a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[True].txt b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[True].txt index b77c1401764..ba08a991a54 100644 --- a/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[True].txt +++ b/tests/openbb_terminal/economy/txt/test_finviz_view/test_display_valuation[True].txt @@ -1,12 +1,12 @@ - MarketCap P/E FwdP/E PEG P/S P/B P/C P/FCF EPSpast5Y EPSnext5Y Salespast5Y Change Volume -0 Basic Materials 2260.70B 11.05 14.06 0.74 1.63 2.30 13.15 20.31 0.3022 0.1501 0.1231 0.0070 9.613600e+08 -1 Communication Services 7417.63B 21.39 15.17 1.05 3.45 3.26 14.19 34.05 0.2059 0.2033 0.2022 0.0169 1.360000e+09 -2 Consumer Cyclical 7410.15B 25.88 14.36 1.14 1.10 3.56 10.19 41.54 0.2838 0.2265 0.2012 0.0256 2.390000e+09 -3 Consumer Defensive 3737.73B 24.83 21.23 2.68 1.39 4.09 20.36 43.20 0.0850 0.0925 0.0486 0.0063 7.792700e+08 -4 Energy 3488.00B 12.39 9.63 1.11 0.96 1.26 10.18 14.97 0.2792 0.1112 0.0878 -0.0003 1.230000e+09 -5 Financial 10142.30B 12.87 13.70 1.04 2.96 0.01 0.59 12.79 0.1888 0.1240 0.0734 0.0059 1.750000e+09 -6 Healthcare 7812.17B 24.97 15.52 2.22 2.23 3.66 12.91 29.47 0.1617 0.1123 0.1602 0.0086 2.360000e+09 -7 Industrials 4981.60B 23.34 17.07 1.56 2.02 4.00 13.74 32.77 0.1624 0.1492 0.0566 0.0062 1.050000e+09 -8 Real Estate 1786.12B 27.99 31.37 2.79 5.64 1.83 23.32 61.52 0.1051 0.1005 0.1014 0.0031 7.028400e+08 -9 Technology 14089.76B 30.43 22.63 1.76 5.14 4.53 16.32 35.65 0.2480 0.1731 0.1491 0.0251 3.160000e+09 -10 Utilities 1445.62B 26.13 3.29 3.71 1.82 1.42 32.47 65.99 0.0141 0.0704 0.0520 -0.0063 3.625100e+08 + Market Cap P/E Fwd P/E PEG P/S P/B P/C P/FCF EPS past 5Y EPS next 5Y Sales past 5Y Change Volume +0 Basic Materials 2260.70B 11.05 14.06 0.74 1.63 2.30 13.15 20.31 0.3022 0.1501 0.1231 0.0070 9.613600e+08 +1 Communication Services 7417.63B 21.39 15.17 1.05 3.45 3.26 14.19 34.05 0.2059 0.2033 0.2022 0.0169 1.360000e+09 +2 Consumer Cyclical 7410.15B 25.88 14.36 1.14 1.10 3.56 10.19 41.54 0.2838 0.2265 0.2012 0.0256 2.390000e+09 +3 Consumer Defensive 3737.73B 24.83 21.23 2.68 1.39 4.09 20.36 43.20 0.0850 0.0925 0.0486 0.0063 7.792700e+08 +4 Energy 3488.00B 12.39 9.63 1.11 0.96 1.26 10.18 14.97 0.2792 0.1112 0.0878 -0.0003 1.230000e+09 +5 Financial 10142.30B 12.87 13.70 1.04 2.96 0.01 0.59 12.79 0.1888 0.1240 0.0734 0.0059 1.750000e+09 +6 Healthcare 7812.17B 24.97 15.52 2.22 2.23 3.66 12.91 29.47 0.1617 0.1123 0.1602 0.0086 2.360000e+09 +7 Industrials 4981.60B 23.34 17.07 1.56 2.02 4.00 13.74 32.77 0.1624 0.1492 0.0566 0.0062 1.050000e+09 +8 Real Estate 1786.12B 27.99 31.37 2.79 5.64 1.83 23.32 61.52 0.1051 0.1005 0.1014 0.0031 7.028400e+08 +9 Technology 14089.76B 30.43 22.63 1.76 5.14 4.53 16.32 35.65 0.2480 0.1731 0.1491 0.0251 3.160000e+09 +10 Utilities 1445.62B 26.13 3.29 3.71 1.82 1.42 32.47 65.99 0.0141 0.0704 0.0520 -0.0063 3.625100e+08