GoogleSheetPlot
This library helps a user to select a google sheet from their Google drive and plots a chart with the values on the sheet. The user only needs to select the column for the x-axis and the y-axis.
Install
pip install GoogleSheetPlot
How to initialize
Add the desired google sheet to the google drive then, get the last section the google drive link as Spreadsheet-ID.
Example - if google drive link is "https://docs.google.com/spreadsheets/d/1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc/edit?usp=sharing", then google SPREADSHEET_ID = "1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc".
Then the user needs to assign the range of the google sheet.
Example - RANGE_NAME = 'A1:C80'
from GoogleSheetPlot import GoogleSheetPlot
SAMPLE_SPREADSHEET_ID = '1SrZfvr2ee54r7HR1jGtAE9zHIj_Y-UzK9ok8bdwkpqc'
SAMPLE_RANGE_NAME = 'A1:C80'
gsp = GoogleSheetPlot()
df = gsp.getDataFrame(SAMPLE_SPREADSHEET_ID, SAMPLE_RANGE_NAME)
here "df" represents the accessed google sheet in dataframe format.
Please download the "credentials.json" file in your working repository by clicking the "Enable Google Sheets API" button
by visiting the page Turn on the Google Sheets API.
If a tab arises saying "This app isn't verified". Click on "Advanced" option on left-hand corner, and select "Go to Quickstart (unsafe)". Now click on "Allow" and approve the application.
Plot the graph
Just give the valid column names(X and Y axis)with the type of plot you want to get. Your plot gets saved with the format "col1_col2_category.png".
gsp.getPlot("average_sales", "offer_price","line")
Example
Please go through the Example.ipynb file in the Example folder.
Links
Metadata
Release files for GoogleSheetPlot 0.1.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| GoogleSheetPlot-0.1.10.tar.gz | 117.7 kB | Details |
Release files / GoogleSheetPlot-0.1.10.tar.gz
| Download URL | GoogleSheetPlot-0.1.10.tar.gz |
|---|---|
| Size | 117.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
74b50f4fb1fa74636a68d69508d26fb89a7ac6ff2b8397646de08cf1471419ee
|
|
BLAKE2b-256 checksum How to use checksums |
a20cb3b4981f987d4ffd251769e2c8ad11c91a67cf75c646723940621eae5fd0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.5
|