We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2d39c9 commit 0e3cd3aCopy full SHA for 0e3cd3a
1 file changed
examples/python/annotation_table.py
@@ -45,20 +45,15 @@
45
jsonstructure = async_rest_api(URI, auth=key)
46
jsondata = jsonstructure["data"]
47
# unpack and display the data table
48
- cols = jsondata["columns"]
49
# rows = [x["id"] for x in jsondata["rows"]]
50
51
- data = jsondata["data"]
+ data = jsondata # ["data"]
52
53
if DEBUG:
54
print(jsonstructure)
55
- print("COLS", cols)
56
print("DATA", data)
57
h = data
58
59
- for j in range(0, len(cols)):
60
- sys.stdout.write(cols[j] +"\t")
61
- sys.stdout.write("\n")
62
for i in range(0, len(data)):
63
sys.stdout.write("\t".join([str(s) for s in h[i]]))
64
sys.stdout.write("\n")
0 commit comments