mattritchey commited on
Commit
d08adfb
·
1 Parent(s): 95cc667

Update pages/Hail Plus.py

Browse files
Files changed (1) hide show
  1. pages/Hail Plus.py +2 -1
pages/Hail Plus.py CHANGED
@@ -211,7 +211,8 @@ def get_legend_lut(prod_root):
211
 
212
  lut = pd.DataFrame({'Value': values,
213
  'RGB': rgb})
214
- lut['R'], lut['G'], lut['B'] = lut['RGB'].str
 
215
  lut[['R', 'G', 'B']] = lut[['R', 'G', 'B']].astype('uint8')
216
  lut['Value'] = lut['Value'].astype(float)
217
  lut['hex'] = lut['RGB'].apply(rgb_to_hex)
 
211
 
212
  lut = pd.DataFrame({'Value': values,
213
  'RGB': rgb})
214
+ # lut['R'], lut['G'], lut['B'] = lut['RGB'].str
215
+ lut[['R','G','B']]=lut['RGB'].apply(pd.Series)
216
  lut[['R', 'G', 'B']] = lut[['R', 'G', 'B']].astype('uint8')
217
  lut['Value'] = lut['Value'].astype(float)
218
  lut['hex'] = lut['RGB'].apply(rgb_to_hex)