Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
group_by Function

Hi Folks,

This is my 1st post here and it's regarding group_by function

I have data frame of PE ratio and Morning star sector code
pe_ratio morningstar_sector_code
Equity(26141 [MGN]) 10000.0000 101
Equity(15306 [GERN]) 9823.3216 206
Equity(26755 [LONG]) 6691.1815 102
Equity(39782 [BSFT]) 6435.1158 311
Equity(35245 [FOR]) 5929.4437 104
Equity(44747 [DATA]) 5249.3939 311
Equity(23869 [ICAD]) 5000.0000 311
Equity(26401 [CRM]) 5000.0000 311
Equity(41730 [ZG]) 5000.0000 104
Equity(34577 [TTHI]) 5000.0000 206

Hod do I group the dataframe by sector_code?