Pandas와 Google sheet를 연동하는 모듈.(A module to integrate pandas and Google Sheets)
Project description
PandanSheet(Korean.ver)
PandanSheet는 google sheeet의 내용을 읽는 패키지 입니다.
주요 기능
Google Sheets 문서로부터 데이터를 읽어 pandas DataFrame으로 변환
설치
PandanSheet 패키지는 pip를 통해 쉽게 설치할 수 있습니다.
pip install pandansheet
함수 소개
| 함수명 | 소개 |
|---|---|
| ReadSheet | 구글 시트의 내용을 가져온다 |
인자소개
| 함수명 | ReadSheet | ||
|---|---|---|---|
| 인자명 | 소개 | 필수여부 | 기본값 |
| URL | 시트링크 | O | |
| header | 열 이름으로 사용할 행의 위치 | X | 0 |
사용방법
import pandansheet as ps
url='https://docs.google.com/spreadsheets/d/1LK5N0kdoEXdHEVKXn1ZGbtxCbZ8V9QDxumyjXVWqKfk/edit?usp=sharing'
#구글 시트 링크를 입력한다. 단 해당 시트는 공개상태여야 할것
print(ps.ReadSheet(url))
url='https://docs.google.com/spreadsheets/d/1LK5N0kdoEXdHEVKXn1ZGbtxCbZ8V9QDxumyjXVWqKfk/edit#gid=1717818648'
#두번째 시트의 내용을 가져온다
print(ps.ReadSheet(url),header=2)
주의
비공개 시트에 접근하려고 할 때 에러가 발생합니다. 시트를 공개 상태로 변경하세요.
업데이트 내역
| 버전 | 내역 |
|---|---|
| 0.0.1 | ReadSheet 함수를 만들었습니다. |
PandanSheet (English.ver)
PandanSheet is a package for reading content from Google Sheets.
Key Features
Reads data from Google Sheets documents and converts it into a pandas DataFrame.
Installation
PandanSheet can be easily installed via pip
pip install pandansheet
Function Introduction
| Function Name | Description |
|---|---|
| ReadSheet | Fetches content from a Google Sheet. |
Argument Introduction
| Function Name | ReadSheet | ||
|---|---|---|---|
| Argument Name | Description | Required | Default Value |
| URL | Link to the sheet | Yes | |
| header | Position of the row to be used as column names | No | 0 |
How to Use
import pandansheet as ps
url = 'https://docs.google.com/spreadsheets/d/1LK5N0kdoEXdHEVKXn1ZGbtxCbZ8V9QDxumyjXVWqKfk/edit?usp=sharing'
# Enter the link to the Google Sheet. Note: The sheet must be public.
print(ps.ReadSheet(url))
url = 'https://docs.google.com/spreadsheets/d/1LK5N0kdoEXdHEVKXn1ZGbtxCbZ8V9QDxumyjXVWqKfk/edit#gid=1717818648'
# Fetches content from the second sheet
print(ps.ReadSheet(url, header=2))
Caution
Attempting to access a private sheet will result in an error. Please change the sheet to public status.
Update History
| Version | Details |
|---|---|
| 0.0.1 | Created the ReadSheet function. |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pandansheet-0.0.1.tar.gz.
File metadata
- Download URL: pandansheet-0.0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2c7024ebd0b913512cc7183fb5cdd28c5a1f943ef07104c7e338a3eb9e270eff
|
|
| MD5 |
68361f5394ec49d9594107e1587d7e5b
|
|
| BLAKE2b-256 |
2297bf51a1131c18381d4a07d344c3034835183e57e9f99a144628d47c069669
|
File details
Details for the file pandansheet-0.0.1-py3-none-any.whl.
File metadata
- Download URL: pandansheet-0.0.1-py3-none-any.whl
- Upload date:
- Size: 2.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5838b4eb26bbd3e29f5cd53c2af4c7d223b670c50a8bd556379a795c0b68a3f8
|
|
| MD5 |
a34ccc94fe06d0c8c52433d21fa3343c
|
|
| BLAKE2b-256 |
bb1fdb9de89629ef15cfb28ec30a8f301b5123c2d5e4743b6f90168f0d9a95af
|