Skip to content

Cannot update multiple rows with gramex.data.update #312

@jaidevd

Description

@jaidevd

Is something not working as expected?
gramex.data.update does not parse args correctly.

Steps to reproduce.
Suppose there's a file.csv containing:

id, val
1, x
2, y
3, z

then the following:

gramex.data.update('file.csv', id="id", args={'id': [2, 3], 'val': ['a', 'b']})

converts it into:

id, val
1, x
2, a
3, a

Expected behavior
It should update rows 2 and 3 to a and b respectively.

Your environment:

  • Gramex version: master branch as of this bug report.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions