Skip to content

Commit

Permalink
Merge pull request #1431 from burnash/fix/readme
Browse files Browse the repository at this point in the history
update readme examples
  • Loading branch information
alifeee authored Mar 14, 2024
2 parents f34cb6a + 2ff2b9a commit 6e864b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ gc = gspread.service_account()
wks = gc.open("Where is the money Lebowski?").sheet1

# Update a range of cells using the top left corner address
wks.update('A1', [[1, 2], [3, 4]])
wks.update([[1, 2], [3, 4]], "A1")

# Or update a single cell
wks.update('B42', "it's down there somewhere, let me take another look.")
wks.update_acell("B42", "it's down there somewhere, let me take another look.")

# Format the header
wks.format('A1:B1', {'textFormat': {'bold': True}})
Expand Down Expand Up @@ -261,10 +261,10 @@ cell_list = worksheet.findall(criteria_re)

```python
# Update a single cell
worksheet.update('B1', 'Bingo!')
worksheet.update_acell('Bingo!', 'B1')

# Update a range
worksheet.update('A1:B2', [[1, 2], [3, 4]])
worksheet.update([[1, 2], [3, 4]], 'A1:B2')

# Update multiple ranges at once
worksheet.batch_update([{
Expand Down

0 comments on commit 6e864b8

Please sign in to comment.