Solution with replace by dictionary : df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'}) print (df) ... ... <看更多>
Search
Search
Solution with replace by dictionary : df['prod_type'] = df['prod_type'].replace({'respon':'responsive', 'r':'responsive'}) print (df) ... ... <看更多>
I don't remember the numpy/pandas version from 10 month ago (The ... e.g. say you are replacing string to numbers; just construct a list (or ... ... <看更多>