gspread-dataframe
Read/write gspread worksheets using pandas DataFrames
What it is and what it does
gspread-dataframe bridges pandas DataFrames and Google Sheets by wrapping gspread. It provides two main functions: get_as_dataframe() reads a worksheet into a DataFrame with support for pandas read_csv options like parse_dates and usecols, and set_with_dataframe() writes a DataFrame back to a worksheet. Version 4.0.0 added drop_empty_rows and drop_empty_columns parameters to automatically trim unused cells from the default Google Sheet grid.
The package is designed for workflows where you need to move data between spreadsheets and Python analysis pipelines. It depends on gspread (>=3.0.0), pandas (>=0.24.0), and six, making it a thin adapter layer. It integrates optionally with gspread-formatting for post-write cell formatting.
Use it for:
- Export analysis results from a pandas pipeline directly to a shared Google Sheet for stakeholder review.
- Read data from a Google Sheet into a DataFrame for data cleaning and statistical analysis in Python.
- Automate periodic data synchronization between a Google Sheet and a local pandas workflow.
- Build a data collection tool where users input data in Google Sheets and Python processes it automatically.
- Trim empty rows and columns from a Google Sheet after writing a DataFrame using drop_empty_rows and drop_empty_columns.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts between Google Sheets worksheets and pandas DataFrames, allowing bidirectional data transfer via the gspread library.
Yes, if you need straightforward pandas-to-Google-Sheets integration and can tolerate aging maintenance. The package is Production/Stable, has no known vulnerabilities, and handles the core use case well. However, verify compatibility with your specific gspread and pandas versions, and be aware that the last release was 793 days ago—consider this if you need active bug fixes or new features.
Install
gspread-dataframe on PyPI
pip
pip install gspread-dataframeuv
uv add gspread-dataframepoetry
poetry add gspread-dataframeInstalling gspread-dataframe
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance is aging—last release was 793 days ago, though the repository remains active with a recent commit and no archived status.
License in practice
MIT license permits commercial and private use with minimal restrictions; you may use, modify, and distribute the package freely provided you retain the license notice.
Quickstart
pip install gspread-dataframe
import pandas as pd
from gspread_dataframe import get_as_dataframe, set_with_dataframe
df = pd.DataFrame.from_records([{'a': i, 'b': i * 2} for i in range(100)])
set_with_dataframe(worksheet, df)
df2 = get_as_dataframe(worksheet)
Requires a worksheet object obtained from gspread client and Google Sheets API credentials configured.
Verify before relying
- Whether the package works reliably with current versions of gspread and pandas beyond the stated minimum requirements.
- Performance characteristics when working with large DataFrames or worksheets.
- Actual Python 2.7 support given the aging maintenance status and modern ecosystem shifts.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — gspread, pandas, six |
| Maintenance | aging — 793 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 4,031,292/month — #2,395 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: gspread_dataframe-4.0.0-py2.py3-none-any.whl
Keywords: spreadsheets, google-spreadsheets, pandas, dataframe
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
gspread-pandasBridges Google Sheets and pandas DataFrames,…
permissive · top 15,000 on PyPI
pandas-read-xmlConverts XML files into pandas DataFrames, with…
permissive · top 15,000 on PyPI
df2gspreadTransfers tabular data between Google…
copyleft · top 15,000 on PyPI
gspread-formattingAdds complete cell formatting support to…
permissive · top 5,000 on PyPI
gspread-asyncioProvides an asyncio wrapper around the gspread…
permissive · top 15,000 on PyPI
gsheetsgsheets provides a Python wrapper around the…
permissive · top 15,000 on PyPI
gspreadgspread provides a Python interface to read,…
permissive · top 1,000 on PyPI
pandas-tdPandas-TD connects pandas DataFrames to…
permissive · top 15,000 on PyPI
pandas_accessReads MS Access database files (.mdb) into…
permissive · top 15,000 on PyPI
pyjanitorExtends pandas DataFrames with method-chainable…
permissive · top 15,000 on PyPI