Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update readme examples #1431

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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