How to convert a single column Pandas DataFrame into Series

后端 未结 3 1534
-上瘾入骨i
-上瘾入骨i 2020-12-19 07:21

I have the following data frame:

import pandas as pd
d = {\'gene\' : [\'foo\',\'bar\'],\'score\' : [4., 3.,]}
df = pd.DataFrame(d)
df.set_index(\'gene\',inpl         


        
3条回答
提交回复
热议问题