Anybody know of a way or code that can run a sinusoidal regression in google sheets or google apps script? thanks!
I've tried searching for code, or looking for an extension that will do it. Need to input 2 rows of data (x,y) and get an outcome of a,b,c, and d. standard form is A*sin(B(x-C))+D
Related
Is it true that it is not possible to directly connect a Google Apps Script (which uses JavaScript) to a Google Sheets spreadsheet using Python?
I am asking this more as a design question: would it not be possible to keep a Google Apps Script in a file and simply use Python to connect it to a gsheets spreadsheet using the spreadsheet id? I have not found a way to do this, but it would be interesting to hear if anyone has found a way to do it and if so how.
I am not sure if this answer is on topic, but I think it might be what you trying to do... That is, push an apps script file up to Google...
I believe you can accomplish this task via the Apps Script Python API:
https://developers.google.com/apps-script/api/quickstart/python
My company does not give the the creds to use the API, so, I can't give you the step by step on this one...
hth,
David
To be fair, I really don't think this is the right approach. Might depend on what you're doing... If you have a Python script that is writing Google Apps Script and needs to push it to Google, you might look in these docs
https://developers.google.com/apps-script/api/reference/rest
If that's not what you're doing and you're trying to manipulate a Spreadsheet by using Python to run some Google Apps Script, refer to the same link. There is "REST Resource: v1.scripts" which has a "run" method.
Last, if your end goal is to manipulate some Google Sheet--you can probably get away with using a Python library like described in this link
https://developers.google.com/sheets/api/quickstart/python
Because just about anything you can use Google Apps Script for, you can technically also do in Python. Except, with Python you have Python and the entire compendium of Python libraries at your disposal. The Google Sheet is ultimately just a data store and reading and writing to it are the things you're trying to do with it--be it Google Apps Script or Python as the driver.
Otherwise, you might be able to use Python to manipulate CLASP
https://github.com/google/clasp
I am new to google spreadsheets.
I am trying to use them for a small website where instead of maintaining a DB, I am storing and fetching data from sheets using APIs.
I found this library - https://github.com/mikeymckay/google-spreadsheet-javascript , for fetching data from a published sheet.
It serves my purpose of doing everything in the browser.
But I am not able to figure out how can I write data to same/different spreadsheet.
Do I use Sheet APIs? Can I also do it using App Script ? Is there a ready to use library for the same ?
Can someone please help?
You'd likely want to check out the Google Drive API, rather than Google Apps Scripts. I don't have much experience with it, especially in regards to using it on a website, but that's the best direction to head in.
I've seen a lot of code snippets and API references online, but I've not been able yet to find a simple guide on how to edit a Google form with Javascript.
I've got a form linked to a sheet, I want one a drop-down list in the form to get its values from a column of the sheet. So I need to get the sheet, find the column, get the data and feed it to the widget.
I can't even see how to get to the form's script. A kick start would be much appreciated. Thanks
https://developers.google.com/apps-script/
Google has a JS-based scripting language to edit Drive features like Docs and Spreadsheet.
EDIT 1:
https://developers.google.com/apps-script/your_first_script
There's also a convenient Google Scripts Editor. Create a google doc and look under 'tools'.
script.google.com
I've spent a few days searching around the site looking for what I was after, but unable to find exactly what I'm looking for.
Basically, I want to be able to call this URL, and instead of it starting a CSV download, I want to capture the output using google script to populate a google spreadsheet:
http://www.footytips.com.au/cfm/ft/sub/downloadLadder.cfm?sort=2&fg=competitions&ff=default&sportId=2&page=1&competitionId=220363&gameType=tips&gameCompId=46295&view=ladderScores&round=1
Basically, I'm not quite sure where to start. I wasn't able to debug the javascript in-browser effectively to find if a direct path to the CSV is produced at any time.
Any help would be appreciated!
Cheers.
May be you could use google's fusion tables:
https://support.google.com/fusiontables/answer/171181?hl=en
https://developers.google.com/fusiontables/docs/v1/reference/table/importRows
Here is the scenario that i want take two addresses dynamically from user, consider one of them as source and other as destination and find driving directions between source and destination.
i googled and got some stuffs not familiar to me..such as writing script using Google Maps JavaScript API V3, and the direction out put will be in json or xml format...i have tried google.map.directionrenrender and directionservice api's in my code but it is saying no such classes in google.map..as i am new to scripting language i am not understanding how to start ....i am using eclipse ide, where i want to build an android app that takes addresses and gives driving directions between those two points..
i want the program almost similar to this Google map driving direction source code for their example? but here they have used some html code and why that is actually required..?
please help me in writing the code
Thanks in advance
To open up Google Maps with directions, start a new Intent using a URL like this:
http://maps.google.com/maps?saddr=%s&daddr=%s
Replace each %s with a string like "x,y" where x and y specify the latitude and longitude. If you want directions from the current location, leave the saddre parameter blank.
This won't work on phones that don't have Google Maps installed, and in those cases will open the browser.