Table syn.store via data frame is generating utf-8 encoding related error

Description

Attached is the error I've been getting running my script
https://github.com/Sage-Bionetworks/synapseAnnotations/blob/tesla-normalize/scripts/json2synapse.py

Here is a simple example to reproduce the error:

import synapseclient
import pandas

syn = synapseclient.login()
tableId = 'syn11205432'

schema = syn.get(tableId)

d = {'key': u'glia', 'description': u'non-neuronal cells that maintain homeostasis, form myelin, and provide its\u2019 physical support'}
df = pandas.DataFrame(data=d, index=[0])

table = syn.store(synapseclient.Table(schema, df))

There may be a miss re-ordering to ensure the proper encoding in https://github.com/Sage-Bionetworks/synapsePythonClient/blob/master/synapseclient/table.py

on line 1175

Environment

None

Activity

Show:
Nasim Sanati
October 16, 2017, 10:53 PM

whoops this is a python client issue

Assignee

Unassigned

Reporter

Nasim Sanati

Labels

Validator

Xavier Schildwachter

Development Area

None

Release Version History

None

Slack Channel

None

Epic Link

Components

Priority

Major