Google Colab Tutorial - Google Sheets, Read & Write Data

Поделиться
HTML-код
  • Опубликовано: 11 сен 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

  • @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

  • @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

  • @emilianoreyes
    @emilianoreyes 4 года назад +3

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

  • @eloy_kings
    @eloy_kings 4 года назад +4

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

  • @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

  • @Aashiq3
    @Aashiq3 4 месяца назад

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

  • @luisspader6508
    @luisspader6508 4 года назад +1

    Man you don't know how you really helped me

  • @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 ruclips.net/video/povMqm4cttM/видео.html

    • @dineshkumarsubramaniam
      @dineshkumarsubramaniam 4 года назад +1

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

  • @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?

  • @bluesdog88
    @bluesdog88 3 года назад +1

    Thanks for the run through, awesome, thank you!

  • @brighnquisitive6217
    @brighnquisitive6217 3 года назад +2

    Well done, Actionable lessons

  • @muhammedaadhil5645
    @muhammedaadhil5645 4 года назад +1

    Congratulations on your 100k subscribers achievement!

  • @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

  • @mustafahozefa2103
    @mustafahozefa2103 Год назад

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

  • @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.

  • @masmanagement4682
    @masmanagement4682 Год назад

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

  • @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!

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  4 года назад +3

      It will probably make more sense in future videos.

  • @CJ-cx7tl
    @CJ-cx7tl 2 года назад

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

  • @sandreke99
    @sandreke99 Год назад

    Thank you so much for this valuable content! :D

  • @lauraa.3593
    @lauraa.3593 4 года назад +1

    Excellent! Thank you!!

  • @saeedarabzadeh8465
    @saeedarabzadeh8465 3 года назад +1

    Love you, really helpful.

  • @pipeliner8969
    @pipeliner8969 4 года назад +2

    thanks a lot!

  • @navanshu
    @navanshu 4 года назад +1

    This is so cool

  • @coffeebuff157
    @coffeebuff157 4 года назад

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

  • @oyebodedamilola9706
    @oyebodedamilola9706 Год назад

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

  • @didierleprince6106
    @didierleprince6106 Год назад

    Mille fois Merci (:

  • @houssemeddineglaoui4512
    @houssemeddineglaoui4512 2 года назад

    On point

  • @radityawaliulu
    @radityawaliulu 2 года назад

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

  • @marieperry3392
    @marieperry3392 Год назад

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

  • @MrAwm-ki6jb
    @MrAwm-ki6jb 4 года назад +2

    Hey congrats 💯 K subscribe 🎉

  • @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

  • @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?

  • @pomarpeggio
    @pomarpeggio 3 года назад

    Thank you

  • @asyikbrowsing200
    @asyikbrowsing200 3 года назад

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

  • @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.

  • @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.

  • @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?

  • @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...

  • @RalphNgOfficial
    @RalphNgOfficial 3 года назад

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

  • @zekariastbirhanu3649
    @zekariastbirhanu3649 4 года назад

    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  4 года назад

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

    • @zekariastbirhanu3649
      @zekariastbirhanu3649 4 года назад

      @@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  4 года назад

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

  • @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!

  • @lutece539
    @lutece539 2 года назад

    thx

  • @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

  • @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.

  • @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])

  • @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')

  • @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? ruclips.net/video/HRRrB_cjtZA/видео.html

    • @rpchaitanya6044
      @rpchaitanya6044 3 года назад

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

  • @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

  • @vinodkumarPrajapativnd
    @vinodkumarPrajapativnd 4 года назад

    Can we publish it as web app?

  • @mask75260
    @mask75260 4 года назад

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

  • @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
    ruclips.net/video/cN7W2EPM-dw/видео.html

    • @ExcelGoogleSheets
      @ExcelGoogleSheets  3 года назад +1

      Make sure you run the install for the library to get the up to date version.

    • @ahmedraghebaliali4426
      @ahmedraghebaliali4426 3 года назад

      @@ExcelGoogleSheets thank you it works

  • @yourdadishere
    @yourdadishere 2 года назад

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

  • @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()