File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ def get_series(
125
125
126
126
for col in df .columns :
127
127
if col in descriptions :
128
- df = df .rename (columns = {data_identifier : df [col ][0 ]})
128
+ df = df .rename (columns = {data_identifier : df [col ]. iloc [0 ]})
129
129
df = df [df [col ].iloc [0 ]].to_frame ()
130
130
break
131
131
return df
@@ -206,14 +206,14 @@ def get_series_via_route(
206
206
if isinstance (facet , str ) and isinstance (series , str ):
207
207
for col in df .columns :
208
208
if col in descriptions :
209
- df = df .rename (columns = {data_identifier : df [col ][0 ]})
209
+ df = df .rename (columns = {data_identifier : df [col ]. iloc [0 ]})
210
210
df = df [df [col ].iloc [0 ]].to_frame ()
211
211
break
212
212
elif isinstance (facet , list ) and isinstance (series , list ):
213
213
for col in df .columns :
214
214
if col in descriptions :
215
- df = df .rename (columns = {data_identifier : df [col ][0 ]})
216
- facet .append (df [col ][0 ])
215
+ df = df .rename (columns = {data_identifier : df [col ]. iloc [0 ]})
216
+ facet .append (df [col ]. iloc [0 ])
217
217
df = df [facet ]
218
218
break
219
219
return df
You can’t perform that action at this time.
0 commit comments