Skip to content

Commit

Permalink
Merge pull request #1362 from burnash/fix/update-migration-guide
Browse files Browse the repository at this point in the history
change `worksheet.update` migration guide
  • Loading branch information
alifeee authored Dec 4, 2023
2 parents 0cb6e2e + 144b604 commit 586e9b1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ The first two arguments (`values` & `range_name`) have swapped (to `range_name`
As well, `values` can no longer be a list, and must be a 2D array.

```diff
- file.sheet1.update(["54"], "B2")
+ file.sheet1.update(range_name="I7", values=[["54"]])
- file.sheet1.update([["new", "values"]])
+ file.sheet1.update([["new", "values"]]) # unchanged

- file.sheet1.update("B2:C2", [["54", "55"]])
+ file.sheet1.update([["54", "55"]], "B2:C2")
# or
+ file.sheet1.update(range_name="B2:C2", values=[["54", "55"]])
```

### Change colors from dictionary to text
Expand Down

0 comments on commit 586e9b1

Please sign in to comment.