Update table views via python client

Description

The code I used to try and update the table view:
import pandas as pd
bar = syn.tableQuery("select foo from syn8001121")
df = bar.asDataFrame()
In [10]: df
Out[10]:
foo
7118159_1 NaN
7118160_1 NaN
7118161_1 NaN
7118162_1 NaN
7774921_1 NaN
7992366_3 bar

In [11]: df.ix[0,0] = 'whatever'

In [17]: syn.store(synapseclient.Table(bar.tableId, df))
Uploading [####################]100.00% 100.0bytes/100.0bytes (82.7bytes/s) table.csv Done...

But then it throws the error:
SynapseHTTPError: 400 Client Error: Bad Request
Expected response to be of type org.sagebionetworks.repo.model.table.UploadToTableResult

Environment

None

Activity

Show:
Kenneth Daily
March 22, 2017, 5:11 AM

This error happens outside of the Python client as well.

Thomas Yu
March 22, 2017, 6:07 AM

What do you mean by that?

Kenneth Daily
March 22, 2017, 8:34 PM
Yooree Chae
June 2, 2017, 9:30 PM

Tested it on the dev branch and it works!

Assignee

Kenneth Daily

Reporter

Yooree Chae

Labels

None

Validator

Yooree Chae

Development Area

None

Release Version History

None

Fix versions

Priority

Major
Configure