Python with Google Sheets: How to read & write using gspread

preview_player
Показать описание
How to read and write from Google Sheets using Python.

This video is a continuation on my beginner series about using Python's Pandas library for data analytics work. You will learn how to use Python's gspread library to read and write data to Google Sheets. Additionally, you will learn how to transform data, as well as learn about code efficiency by creating custom functions.

Python is a programming language. You can implement Python in various environments including script files, notebooks, and terminal or command line. My preference is to code in a script file; my editor of choice is PyCharm.

I'd like to express my appreciation for the contributors and developers of gspread. I use it every day and it has made my like so much easier.
Рекомендации по теме
Комментарии
Автор

Very clear and easy to follow! Thank you!

greencatted
Автор

Nice video. Can I get your recommendation for my problem right now?. My job is managing a customer relationship management software. I want to read the data of customers from the CRM (name, age...) and automatically write into google sheet in real-time. I have research some method like scrape data but it didnt work.

HuyVuQuang-ngzm
Автор

I don't know why but I kept getting a:
AttributeError: 'Spreadsheet' object has no attribute 'get_all_values'
when I tried to read the values in because I like getting the actual key and sheet IDs too.
Seemed to trip up at that "sheet = line.

Thought I was going crazy making mistakes with the get worksheet id command until I found my way here.
For now, had to abandon the id for one of these two lines instead:
sheet = wb.get_worksheet(1)
sheet = wb.worksheet("<<title>>")


Though it would have been nice to use the actual id.

DestinedArts
join shbcf.ru