Skip to main content

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열 이름으로 사용할 행의 위치X0

사용방법

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.1ReadSheet 함수를 만들었습니다.

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 NameDescription
ReadSheetFetches content from a Google Sheet.

Argument Introduction

Function NameReadSheet
Argument NameDescriptionRequiredDefault Value
URLLink to the sheetYes
headerPosition of the row to be used as column namesNo0

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

VersionDetails
0.0.1Created the ReadSheet function.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pandansheet-0.0.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pandansheet-0.0.1-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

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

Hashes for pandansheet-0.0.1.tar.gz
Algorithm Hash digest
SHA256 2c7024ebd0b913512cc7183fb5cdd28c5a1f943ef07104c7e338a3eb9e270eff
MD5 68361f5394ec49d9594107e1587d7e5b
BLAKE2b-256 2297bf51a1131c18381d4a07d344c3034835183e57e9f99a144628d47c069669

See more details on using hashes here.

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

Hashes for pandansheet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5838b4eb26bbd3e29f5cd53c2af4c7d223b670c50a8bd556379a795c0b68a3f8
MD5 a34ccc94fe06d0c8c52433d21fa3343c
BLAKE2b-256 bb1fdb9de89629ef15cfb28ec30a8f301b5123c2d5e4743b6f90168f0d9a95af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page