jeudi 27 octobre 2016

how do i do conditional branching on a elements of a pandas series?

If I have a series S that has such mixed values

textelement
{"id":1,"name":"whatever","value":"sonso"}
name-value

how do I make a conditional statement so that when the element is in JSON format, it will skip, but when it's a text string or name-value pair, I will convert to JSON format?

Aucun commentaire:

Enregistrer un commentaire