Google Colab Tutorial - Google Sheets, Read & Write Data

Поділитися
Вставка
  • Опубліковано 5 вер 2024
  • Learn how to read and write data to Google Sheets from Google Colab ( colab.research... ). In this tutorial we'll import 2 data tables from Google Sheets, join them using a matching field and then export the results back to Google Sheets spreadsheet.
    Google Colab Tutorial Series • Google Colab Tutorials...
    Python programming basics & working with data • Python Programming Tut...
    #google #colab #sheets

КОМЕНТАРІ • 114

  • @klitt76
    @klitt76 4 роки тому +16

    please continue on with the colab videos. they're great and amazing to see how the power of python can be easily harnessed within a single environment.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому +2

      Thanks, it's pretty awesome, but there are very few people watching these and it takes a long time to create one of these Colab videos, so I'm not sure if I'm going to continue.

    • @marcelovcoutinho
      @marcelovcoutinho 3 роки тому +2

      @@ExcelGoogleSheets Please do continue.

    • @IrakliChitishvili
      @IrakliChitishvili 2 роки тому +2

      @@ExcelGoogleSheets maybe adding python in the title will attract more people? Nevertheless, your content is simply the best!

    • @Al-Ahdal
      @Al-Ahdal Рік тому

      @@ExcelGoogleSheets , please do continue on COLAB functionality, with comprehensive data analysis part, including REGEX. Make comprehensive playlist on data analysis using COLAB. Thanks

  • @vinodkumarPrajapativnd
    @vinodkumarPrajapativnd 4 роки тому +8

    Wow.. I have been using your tutorials since long to develop small application for my organization.
    You and Google keep surprising me.
    Will try it out

  • @emilianoreyes
    @emilianoreyes 4 роки тому +3

    Thanks! Congrats 100k! Keep pushing, good luck and inspiration!

  • @Aashiq3
    @Aashiq3 4 місяці тому

    You Sir, are awesome. You are a life saver. You inspired me to learn Python.

  • @eloy_kings
    @eloy_kings 4 роки тому +4

    Thank you! congrats for you 100K! keep going!

  • @luisspader6508
    @luisspader6508 4 роки тому +1

    Man you don't know how you really helped me

  • @siddharthjain6629
    @siddharthjain6629 4 роки тому +3

    Wonderful!!! Amazing!!! Nice video sirji i appreciate your work and sir please do make basic videos for this particular software and advance level videos also, as i don't belong to programming background so please do makes basics videos just like you did in apps scripts. And really your videos are very helpful to me. Once again i appreciate your work

  • @muhammedaadhil5645
    @muhammedaadhil5645 4 роки тому +1

    Congratulations on your 100k subscribers achievement!

  • @brighnquisitive6217
    @brighnquisitive6217 3 роки тому +2

    Well done, Actionable lessons

  • @mustafahozefa2103
    @mustafahozefa2103 Рік тому

    i am realy impressed you are maing us learn how to search

  • @bluesdog88
    @bluesdog88 3 роки тому +1

    Thanks for the run through, awesome, thank you!

  • @masmanagement4682
    @masmanagement4682 Рік тому

    Amazing content I have learned a lot from your content. Big thanks! Hope you are always healthy and happy

  • @jodhvirsingh8677
    @jodhvirsingh8677 2 роки тому +1

    Excellent video as usual...if i may add, can you plz put time stamps in your video..that would help us keep track much easily..thnx

  • @dineshkumarsubramaniam
    @dineshkumarsubramaniam 4 роки тому +2

    Your videos amazing. Congrats for 100k. Keep doing.. I learned everything from your videos only. Could you plz do videos of “learn basics of python” and how can we use python in google sheets and docs. It would be more helpful.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому +1

      I did a quick overview here if you know JavaScript ua-cam.com/video/povMqm4cttM/v-deo.html

    • @dineshkumarsubramaniam
      @dineshkumarsubramaniam 4 роки тому +1

      Learn Google Spreadsheets it’s really helpful. Keep doing more videos on google colab with python

  • @liberpereira
    @liberpereira 4 роки тому +1

    Amazing!! I can save a lot of time using it. Thank you very much!

    • @liberpereira
      @liberpereira 4 роки тому +1

      I think I can follow you and adapt it to what I need at this time. I'm going to start using it now.

  • @richardlax749
    @richardlax749 3 роки тому

    You have taught me so much! I was completely new to programming but I've watched all of your Google Apps Script videos and have been been able to create some cool projects. I am just wondering what you suggest I learn next? Should I start learning Python and using Colab? Any tutorials on the way for how to start using the advanced services?

  • @CJ-cx7tl
    @CJ-cx7tl 2 роки тому

    such a great video, saved me so much time, thank you!!!!

  • @lauraa.3593
    @lauraa.3593 4 роки тому +1

    Excellent! Thank you!!

  • @BustaCap
    @BustaCap 4 роки тому +1

    I’m not sure what I have that I can apply this to. Very interesting watching you work though. Keep going! Congrats on 100k!

  • @sandreke99
    @sandreke99 Рік тому

    Thank you so much for this valuable content! :D

  • @saeedarabzadeh8465
    @saeedarabzadeh8465 3 роки тому +1

    Love you, really helpful.

  • @radityawaliulu
    @radityawaliulu 2 роки тому

    could you please countinue after load gsheet in dataframe then making to plotting x,y and another chart. please

  • @didierleprince6106
    @didierleprince6106 Рік тому

    Mille fois Merci (:

  • @oyebodedamilola9706
    @oyebodedamilola9706 Рік тому

    Please can we have access to the Google sheet used for this video ?

  • @navanshu
    @navanshu 4 роки тому +1

    This is so cool

  • @pipeliner8969
    @pipeliner8969 4 роки тому +2

    thanks a lot!

  • @coffeebuff157
    @coffeebuff157 4 роки тому

    Congrats on 100K.
    Anyway, I can call a Colab script from a button click on the sheet ?

  • @houssemeddineglaoui4512
    @houssemeddineglaoui4512 2 роки тому

    On point

  • @vtube12345
    @vtube12345 2 роки тому

    Nice Video. What is the link to the documentation of various methods you are referring to in the video ?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 роки тому

      Are you asking about pandas documentation? pandas.pydata.org/docs/reference/index.html

  • @MrAwm-ki6jb
    @MrAwm-ki6jb 4 роки тому +2

    Hey congrats 💯 K subscribe 🎉

  • @rpchaitanya6044
    @rpchaitanya6044 3 роки тому

    Please make a video on how to get real time stock data in google sheet using colab

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Get from where?

    • @rpchaitanya6044
      @rpchaitanya6044 3 роки тому

      @@ExcelGoogleSheets say from yahoo finance ... I keep my list of stocks and trigger price mentioned in my google sheet....when I run script in colab it should start sending me notification whenever that trigger price is reached.....

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Why Colab? Maybe this? ua-cam.com/video/HRRrB_cjtZA/v-deo.html

    • @rpchaitanya6044
      @rpchaitanya6044 3 роки тому

      @@ExcelGoogleSheets this method has data delay upto 20 mins... For day traders this method doesn't suit....

  • @pomarpeggio
    @pomarpeggio 3 роки тому

    Thank you

  • @adrianobalduino3850
    @adrianobalduino3850 3 роки тому

    Is it possible to create an integration between Google Apps Scripts and Google Colab?
    The ideia wouble be to create like a menu in the Google Sheets Spreadsheet with Google Apps Scripts and the action would call a notebook in Google Colab?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      I don't think you can do this at the moment, but hopefully they'll add API for this at some point.

  • @lutece539
    @lutece539 2 роки тому

    thx

  • @asyikbrowsing200
    @asyikbrowsing200 3 роки тому

    Awesome !!!.
    Could we install/use tensorflow in google colab?

  • @marieperry3392
    @marieperry3392 Рік тому

    Is there a link to this actual colab somewhere? :)

  • @christopherjspiteri
    @christopherjspiteri 3 роки тому

    Been watching your Google Apps Script videos, great work and quality of tutorial. Thank you. With this tutorial I am having issues loading a worksheet - I have a row above the headers/column labels that I don't want to use. I usually use skiprows=1 but this does not work with the.DataFrame.from_records() - Any suggestions appreciated (from anyone, and please don't say google it, i've been there and done that).

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Don't use from records.
      df = pd.DataFrame(data=yourdata[2:],columns=yourdata[1])

  • @rodrigosanchezdelrio8780
    @rodrigosanchezdelrio8780 3 роки тому

    Hi. I have some problems with the update method (24:54): it only appears the following ones: update_acell, update_cell, update_cells and update_title. What can be happening? Thank you very much for the attention. Regards.

    • @NelkaPerson
      @NelkaPerson 3 роки тому

      Hey man, I know this is a late reply but hopefully it will help someone else. You need to run !pip install --upgrade gspread. Without this you're running gspread 3.0 natively and worksheet.update wasn't added until after this. Hope it helps!

    • @clothesfromthedryer
      @clothesfromthedryer 3 роки тому

      @@NelkaPerson Thank you, this helped me! I also had to restart the runtime before the upgrade worked.

  • @radityawaliulu
    @radityawaliulu 2 роки тому

    IDK what date this tutorial was made.
    but, now
    gc = gspread.authorize(GoogleCredentials.get_application_default())
    refer to error.
    any req except upgrade gspread?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  2 роки тому +2

      from google.colab import auth
      auth.authenticate_user()
      import pandas as pd
      import gspread
      from oauth2client.client import GoogleCredentials
      from google.auth import default
      creds, _ = default()
      gc = gspread.authorize(creds)

    • @radityawaliulu
      @radityawaliulu 2 роки тому

      few seconds already done,
      delete line
      gc = gspread.authorize(GoogleCredentials.get_application_default())
      and add few line before above
      from pydrive.auth import GoogleAuth
      from pydrive.drive import GoogleDrive
      from oauth2client.client import GoogleCredentials
      auth.authenticate_user()
      gauth = GoogleAuth()
      gauth.credentials = GoogleCredentials.get_application_default()
      drive = GoogleDrive(gauth)
      #google sheet
      from google.colab import auth
      auth.authenticate_user()
      import gspread
      from google.auth import default
      creds, _ = default()
      gc = gspread.authorize(creds)

    • @radityawaliulu
      @radityawaliulu 2 роки тому

      thank a lot for this tutorial, help me full for read data gsheet. instead using csv
      please make more tutorial predict price please

  • @robertdonato5444
    @robertdonato5444 3 роки тому

    Awesome video. I tried to use import robin_stocks which works in jupyter but I got an error [ModuleNotFoundError: No module named 'robin_stocks'] in colab. Any ideas?

  • @mahendra...---...
    @mahendra...---... 2 роки тому +2

    in case someone need this
    from google.colab import auth
    auth.authenticate_user()
    import gspread
    from google.auth import default
    creds, _ = default()

  • @obhular
    @obhular 3 роки тому

    Is there a way to use Google Apps Script to run a Google colab notebook. I'm thinking of trying to have a sheets form that has a button which triggers a python script but lost on how to start that

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Not at the moment.

    • @obhular
      @obhular 3 роки тому

      @@ExcelGoogleSheets aww, well keep up the posts you have definitely changed the game for me with data manipulation!

  • @MegaHeatbreaker
    @MegaHeatbreaker 3 роки тому

    not only java script can....now python also can....!!!!...So which language is best to learn? I am starting to learn..now...

  • @ditowilliam7156
    @ditowilliam7156 3 роки тому

    Hello i just found a problem today that the update function to write from google colab to google sheet isn't available anymore. Can you help me solve this? Thankyou

  • @ankitgupta258782
    @ankitgupta258782 2 роки тому

    I am getting an error that "update is not an attribute of worksheet". Can you help?

  • @zekariastbirhanu3649
    @zekariastbirhanu3649 3 роки тому

    Thanks a very good colab demo!
    I have three tabs on a Google Sheet workbook where two of them are input tabs and the third one is an output tab. I can display on the third tab calculation results made on the input tabs; all the calculations are done on colab.
    Others users (who doesnt have experience with colab) have to experiment and play with the numbers in the input tabs, and would like to see output on the third tab before reaching a desired final output numbers. The issue with this, as you can see, is multiple pulling from colab and pushing to GS - change input numbers -> see output -> improve input numbers --> see output .....
    Do you know ways to make this less painful?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Looks like you should be doing your calculations in Google Sheets using formulas.

    • @zekariastbirhanu3649
      @zekariastbirhanu3649 3 роки тому

      @@ExcelGoogleSheets Thanks! That is how I would do it if it was only the three sheets as I have discussed above (I was only giving a simple example); but what about you have more than 10 sheets that have very heavy calculations and are dependent, and it takes a lot of time to load the workbook and needs a lot of checking on results.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      there is no easy answer. it's case by case.

  • @bocobox
    @bocobox 4 роки тому

    Hi. I am having an issue with get_all_values. dates and even numbers is read as string. Is there any method to get data separately according to its dtypes(obejct, int, float) from google spread sheet from scratch.. thanks always.

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому +1

      try get_all_values(value_render_option='UNFORMATTED_VALUE')
      You can also use get_all_records instead of get_all_values, but return will be a list of dictionaries instead of a list of lists.

    • @bocobox
      @bocobox 4 роки тому

      @@ExcelGoogleSheets thanks a l lot. but I am still struggling with date. I do the following, 2019-10-31 with get_all_values(value_render_option='UNFORMATTED_VALUE'), then it changed 43769 (int64). so that I try this df['date'] = pd.to_datetime(df['date']). finally I got 1970-01-01 00:00:00.000043769 (datetime64[ns]). no idea where this is coming from. your kind feedback would be appreciated.

  • @RalphNgOfficial
    @RalphNgOfficial 3 роки тому

    Hi, is Colab able to join Data from many CSV files in the G Drive?

  • @matiasmazzucchi9374
    @matiasmazzucchi9374 6 місяців тому

    i love you

  • @livelifeoutdoors182
    @livelifeoutdoors182 3 роки тому

    How can I convert JSON data and write into a google sheet with Colab?

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 роки тому

      Depends on where JSON data is located. But generally speaking you should be able to use Pandas
      df = pd.read_json('data.json')

  • @mask75260
    @mask75260 4 роки тому

    Can you start a online classes for us on week offs.

  • @vinodkumarPrajapativnd
    @vinodkumarPrajapativnd 4 роки тому

    Can we publish it as web app?

  • @navedakther4039
    @navedakther4039 4 роки тому

    Bro I need a help from you I am using batchUpdate method to add data on my spreadsheet but there is a problem as you know batchUpdate or update keeps on overwriting in one cell how can I stop this ? Also if the cell has value I want to skip that cell and put next value on empty cell.How can I do it please help me. Note: I am using node.js

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому

      Use append instead of update.

    • @navedakther4039
      @navedakther4039 4 роки тому

      But sir how can I do batch update on append

    • @navedakther4039
      @navedakther4039 4 роки тому

      Bro please reply

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 роки тому

      Append doesn't support batch, but it still can append an entire array.
      I'm not sure why you need batch.

    • @navedakther4039
      @navedakther4039 4 роки тому

      I want to append the data on 2 collumn with 2 given ranges just like batchUpdate does it but since update/batchUpdate overwrites things I was also thinking how can I use append for 2 ranges. Sir for further contact can I have your email or any contact I am one of your very old subscribers. Really love the content you do on these channel. Please reply also thanks

  • @RalphNgOfficial
    @RalphNgOfficial 3 роки тому

    This is the training file with some mock up data, u may use it. docs.google.com/spreadsheets/d/1vDIL_P5JH2SPmcPFZVR7GxxyhS2rjydyCLa3dsEK0Kg/edit?usp=sharing

  • @ahmedraghebaliali4426
    @ahmedraghebaliali4426 3 роки тому

    i cant find update method for the work sheet in 24:65
    ua-cam.com/video/cN7W2EPM-dw/v-deo.html

  • @yourdadishere
    @yourdadishere 2 роки тому

    Nice videos, but, wtf, man? I mean, attach a copy of the code or the github.