首页 > 其他分享 >[911] Read Data from Google Sheets into Pandas without the Google Sheets API (.gsheet)

[911] Read Data from Google Sheets into Pandas without the Google Sheets API (.gsheet)

时间:2023-10-18 13:22:23浏览次数:41  
标签:Google sheet name into API Sheets your

ref: Read Data from Google Sheets into Pandas without the Google Sheets API


import pandas as pd
sheet_id = "1XqOtPkiE_Q0dfGSoyxrH730RkwrTczcRbDeJJpqRByQ"
sheet_name = "Sheet1"
url = f"https://docs.google.com/spreadsheets/d/{sheet_id}/gviz/tq?tqx=out:csv&sheet={sheet_name}"

You can find the sheet id in the url of your file behind “d/”, copy it from your browser and paste it into your code. The sheet name is the name you gave your sheet.

标签:Google,sheet,name,into,API,Sheets,your
From: https://www.cnblogs.com/alex-bn-lee/p/17771851.html

相关文章

  • Qt SQL API相关操作
    作者:苏丙榅链接:https://subingwen.cn/qt/qt-db/?highlight=sql来源:爱编程的大丙著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。另外,推荐野火关于sqlite 的文档:https://doc.embedfire.com/linux/qt/embed/zh/latest/ebf_qt/senior/qt_sqlite.html......
  • 在CMake中配置使用Intel One API的注意事项
    环境IntelOneAPI2023.2CMake3.27.7VisualStudio2022Community(withC++desktop)样例程序代码1#include<iostream>23intmain()4{5std::cout<<"Hello,CMake!"<<std::endl;6std::cin.get();7return0;8......
  • Flask一个文件快速起一个API接口服务
    fromflaskimportFlask,request,jsonifyapp=Flask(__name__)@app.route('/my_endpoint',methods=['POST'])defhandle_post_request():#在这里可以处理接收到的POST请求数据data=request.get_json()#获取POST请求中的JSON数据#返回指定内容......
  • Go - Creating a JSON Web Service API
    Problem: YouwanttocreateasimplewebserviceAPIthatreturnsJSON.Solution: Usethenet/httppackagetocreateawebserviceAPIandtheencoding/jsonpackagetoencodedatatobesentbackasJSON. You’llcreateawebserviceAPIthatreturnsa......
  • Apipost使用介绍
    相信无论是前端,还是后端的测试和开发人员,都遇到过这样的困难。不同工具之间数据一致性非常困难、低效。多个系统之间数据不一致,导致协作低效、频繁出问题,开发测试人员痛苦不堪。API管理的难点在哪?开发人员在Swagger定义好文档后,接口调试的时候还需要去Postman再定义一遍。前端......
  • Apipost使用介绍
    相信无论是前端,还是后端的测试和开发人员,都遇到过这样的困难。不同工具之间数据一致性非常困难、低效。多个系统之间数据不一致,导致协作低效、频繁出问题,开发测试人员痛苦不堪。API管理的难点在哪?开发人员在Swagger定义好文档后,接口调试的时候还需要去Postman再定义一遍。前......
  • Apifox设置登录脚本
    第一步,设置脚本consturl='/Platform/Login/Login'constcurUrl=pm.request.getBaseUrl();letbaseUrl=pm.environment.get("SYS");console.log('sd',baseUrl)constaccount=pm.environment.get("account");constpw......
  • Util应用框架Web Api开发环境搭建
    要使用Util应用框架开发项目,首先需要搭建合适的开发环境.迈出第一步,对于很多.Net新人可能并不简单.如果你对.Net环境并不熟悉,请尽量按照本文档进行操作.操作系统请安装Windows10以上版本操作系统.你也可以使用MAC操作系统,但需要自行解决开发环境问题.安装VisualSt......
  • es - Kibana API - 批量插入
    (3).批量插入:POST_bulk{"index":{"_index":"books","_id":"19553"}}{"BookID":19552,"BookName":"C语言程序设计实验指导与习题解答","BookIntr":"导语_点评_推荐词","Book......
  • webapi body 参数获取数据
    publicstringHttpPost(){stringstrURL="";DataTabledt=newArichive().GetKEY();stringJsonString=string.Empty;JsonString="{\"appKey\":\""+dt.Rows[......