r - Convert hex to decimal in python pandas dataframe -


this question has answer here:

i trying move r python pandas. not expert , welcome help. have searched! have dataframe, sh_tags in r column thumbs_id in hex. convert decimal this:

sh_tags$thumb_id <- as.integer(paste("0x",sh_tags$thumbs, sep="")) 

i can convert single cell in pandas this: int(thumb_id .iloc[1,0],16)

but want column.

for series:

x = pd.series(["ff","cd","1a"]) b16 = lambda x: int(x,16) x.apply(b16) 

seems work


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -