亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

??
??
Google ???? ????? ??????
Google ???? ???? ?? ? ??
API ?? ?? ?? ? ??
Google ??? ?? ??? ??
gspread ??
? ??? ?? ?? ??
?? ? ??? ???? ??
Google ?? ?? ? ??
?? ?? ??
?? ?? ??
??? ?? ?? ???
?? ??? ?? ???
?? ?? ??
?? ??
??? ?? ? ??
?? ???? ??
??? ?? ? ??
??? ?? ?? ?? ??
?? ? ?? ??
?? ?? ?? ??? ?? ?? ?????
?? ??? ?? ?????
??? ??? ?? ?? ?? ??
?? ?? ?? ?? ?????
?? ??? ???????
?? ? ????
??? ?? ???????
?? ??? ?? ???????
?? ? ??
?? ??
?? ?
??? ??? ?? ?? ??
Google API? ??
??
?? ??? ??
?? ?? ??
? ?? ???? ?? ?? Python? ??? Google ?? ??? | ?? Vidhya

Python? ??? Google ?? ??? | ?? Vidhya

Apr 13, 2025 am 10:01 AM

Google Sheets? Excel? ?? ?? ?? ?? ???? ?? ? ????, ??? ??, ?? ?? ? Google Suite?? ??? ??? ?? ??? ?? ?? ??? ???? ???? Google Docs?? Google Sheets? ???? Google ?? ??? ??? ? ????. ?? ??? ?? ????? ? Pandas? ???? ????? ???? Excel ??? ?????? ?? ? ? ??? ??? ??? Google ??? ?? ?? ? ? ????. SaaS ?????? Google Sheets ???? ?????? Java, JavaScript, Node.js, PHP, Ruby, Python ? Google ?? ? ????? ??? ??? ????? ??? ???? API? ???????. ? ??? Python? ???? Google ?? ???? Pandas ??? ???? ????????? ?? ??? ?? ? ??? ?????? ? ??? ???. ??? ???? GSPread Python ?????? ???? ???? ? ???? Google ??? ?? ???? Google Sheets API? ?? ?????? ??? ?????? ?? ? ? ????.

? ??? Data Science Blogathon ? ??? ??????? .

??

  • Google ???? ????? ??????
  • gspread ??
  • ?? ? ??? ???? ??
  • Google ?? ?? ? ??
  • ?? ?? ??
  • ?? ??
  • ??? ?? ? ??
  • ??? ?? ?? ?? ??
  • ?? ??? ???????
  • ?? ? ??
  • ?? ??
  • ?? ?
  • ??? ??? ?? ?? ??
  • Google API? ??
  • ?? ?? ??

Google ???? ????? ??????

??? ????? Google Sheets? SaaS ????? ?????? ?? ??? ???????. ???? ???? ??? ??? ? GCP (Google Cloud Platform)? Google ??? ?? ???? ? ????? ??? ???? ?????.

????? Google Sheets Automation? ????? ??? ?? 3 ??? ??????.

Google ???? ???? ?? ? ??

https://console.cloud.google.com/ ?? ?? ?? ??? ??????. ?? ???? ???? ?? ??? ???? ? ????? ??????. ???? ??? ???? ???“?? ??”?? ????, CREATE? HIT ? GCP ????? ???? ????.

Python? ??? Google ?? ??? | ?? Vidhya

API ?? ?? ?? ? ??

Google Sheets ? Google Drive API? ????? ??? ??? ???????. ? ??? ??? ??? ?? ??? ?? ???? Google ???? ???? ????? ?? ? ? ??????. Google Sheets API? ?????? ?? ?? ??? ??? ????“Google Sheets API”? ??????. ??? ???? API ?? ?? ???? ???????. ???? "?? ?? ???"? ???? ?? ?? ?? ??? ????.

Python? ??? Google ?? ??? | ?? Vidhya

?? ???? "?? ???? ???"? ???? ??? ??????. ?? ???? ??? ????? ??? ??? ???? ??? ??????. ?? ?? "???"??? ??????. ????? ???? ??? ??????.

Python? ??? Google ?? ??? | ?? Vidhya

????? Google Drive API? ??? ? ? ????. ? API? ?? ?? ??? ??? ?? ??? ????. ?? ??? ??? ? API? ??? ? ? ????. ?? Python ????? Google ??? ????? ?? ?? ? ?? ?? JSON? ?????????. ?? ?? ? ??? ?? ???? ???? ? ??? ???? ? ?? ??? ???? ? ? ?? ???? ??? ?? JSON? ??? ?? ??????.

Python? ??? Google ?? ??? | ?? Vidhya

Google ??? ?? ??? ??

??? ????? ?? ? ?? ??? ???? Google ??? ??????. ??? ????? ??? ??? ???? ??? ? ? ??????. ?????? ??? ??? ?? ?? ? ??? (??? ??? ?? ?? ?? ??)? ???? ?? ???? ??? ??? ???? ??????.

gspread ??

GSPread? Google ??? Python API ?????. ??? ??? ? ??? ???? Google SheetSapi? ???? ?? ??? ??????. SeyetSapi?? ?? ??? ?? ?? ? ? ??? ??? ??? ? ????.

?? ???? ?????? ????? ?? Python ???? ????? ??? PIP ??? ??? ? ????. ??? ??? ??? ?? ?? ??? ??? ??? ?????? ??????.

 PIP ?? GSPREAD

? ??? ?? ?? ??

Google ??? ? ??? ? ?? ???? ???? ???? ?? ? ? ????.

  • A1 ??? : ? ? ??? ?? ??, ? ?? ? ? ??? ?????.? ??? ?? ??? ???? ?? ???? ?? ?, ? ?? ?? ?? ?? ?? ? ? ????.
  • ?? ? ?? : ??? Google ?? ???? ?? ???? ??? ? ??? ?? ??? ?? ??? ?? ?? ? ? ?????.

?? ? ??? ???? ??

??? ??? ? ?????? ?? ???? ??? ??????. ??? ?? ???? ?? ? ???? ???? ? ?? ?? ??? ???? ??????. ??? ????? ?? ??? ?? ????????.

Python? ??? Google ?? ??? | ?? Vidhya

??? JSON ??? ???? ?? ??????? GSPread? "service_account_from_dict ()"??? ?????. ????? Google Sheets ????? ??? ?? ??? ??? ???? "Open ()"??? ???? Google ??? ? ? ????. ?? ??? ??????.

 gspread? ?????
JSON ??

Open ( 'creds.json')?? f :
    ?? ?? = json.load (f)

gc = gspread.service_account_from_dict (?? ??)

sh = gc.open ( "Articledemo")

?? ?? ?? Google ??? ? ??? ? ?? ?? ??? ????. ??? ?? ??? Google Workspace??? ?? ?? ?? ???? ???? ?? ??? ??? ??? ?? ? ????. ???? ??? ?? ??? ?? ? ????? ?? API?? ?? ??? ??? ? ? ????. ?? ??? ???? ?? URL ?? ???? ??? ?? ID? ???? ???? ??? ??? ? ? ????. ??? URL ?? ?? ID? ?? ???? ??? ????? ?????.

 ?? ID? ?? ## ???
sh = gc.open_by_key ( "1r97twcm0fffnssrh_0fjddg-hcqf5plhbhbhrxu9ptv_q")


## URL? ?? ???
sh = gc.open_by_url ( "https://docs.com/spreadsheets/d/1r97twcm0fffnssh_0fjdg-hcqf5plhbhbhrxu9ptv_q/edit?gid=0#gid=0"))))

?? ??? ?? ????? ?? ? ?? ????. ?? ??? ??? ????? ?????.

 print (sh.sheet1.acell ( 'a1'). ?)

??? ??? A1 ?? ???? ?? ?????.? ?? ??? ?? "Gsheet : ??? ? ?? ????"???. ?? ??? ?? GSPREAD ?????? ?? ???? ?? ??? ?? ??? ?? ? ?????.

?? : Shvariable? ???? ?? ??? ???? ??? ??? ??? ?????.

Google ?? ?? ? ??

???? ??? ????? ???? ???? ?? ?? ????? ? ????. ??? ?????? ???? ???? ?? ? ??? ???? ?? ? ? ????. ?? ??? ??? ???? ?? ???? ?? ?? ????.

  • ? ???? ??? ???? gspread ?????? create () ??? ??????. ? ???? ??? ??? ?? ??? ???? ??? ????? folder_id ?? ??? ??????.
  • ?? ? ? ???? ??? ??? ?? ??? ? ??? ? ? ????. ?? ??? ??? ?? ?????? ???? ??? ???? ??? ?????. ?? ?? ???? ?? ??? "share ()"??? ??? ? ????. ? ???? "email_address"(??? ??), "perm_type"(?? ??) ? "??"? 3 ?? ?? ?? ??? ?????. ?? ??? ???, ??, ??? ?? ??? ?? ?? ?? ? ????. ???? ?? ??? ?? ??? ?? ?????. Perm_type?? 'Reader', 'Commenter', 'Writer', 'FileOrganizer', 'Organizer'? '???'? ?? ??? ?? ?? ? ?? ?? ????. ??? ? ??? ??? ???? ?? ??? ?? ??? ????.
    • "??": ???? ?? ? ?? ??? ?????? ?? ?? ?? ?? ? ? ????.
    • "email_message": ?? ???? ?? ???? ??? ??? ?.
 sh = gc.create ( 'Articledemotest') ## ? ???? ?? ??
sh.share (email_address = '[email protected]', perm_type = 'user', role = 'writer', notify = true, email_message = "??? ??? ?????")

Python? ??? Google ?? ??? | ?? Vidhya

?? ?? ??

?? ???? ??? ?? ?? ?????. ??? ?? ??? ??? ?? ?? ?????? ?????. GSPread? ???? ???? ? ?? ??? ???, ??, ?? ?? ?? ? ? ????. ??? ? ??? ?? ?????.

?? ?? ??

???? ?? ??? ?? ??? ?? ?? ??? ?? ??? ???? ??? ? ? ????.

  • ???? ?? ??? : "get_worksheet ()"??? ??? ???? ?? ??? ???? ?????.
  • ???? ??? : "Worksheet ()"??? ?? ??? ??? ?????. ?? ?? ???? ????? ????? ? ?? ??? ??? ??? ?? ? ????.
  • DOT ??? ?? ??? ?? ??? : DOT ??? ???? ??, ??? ?? ID? ???? ?? ???? ??? ? ?? ?? ??? ??? ? ? ????.
  • ?? ??? : "Worksheets ()"??? ???? ??? ?? ?? ??? ?????. GSPREAD ?? ?? ??? ?????. "??"? "ID"?? ???? ? ?? ??? ????, ??? ?? ??? ?? ???? ????? ? ??????.
  • ID? ?? ??? : ??? ????? ???? ?? ??? ?? ?? ?? ID? ??? ?? ?? ????? ? ????. ??? ??????? "get_worksheet_by_id ()"??? ??? ? ????.

??? ??? ?? ??? ?? ?? ?????.

 print (sh.get_worksheet (0))
print (sh.worksheet ( "articleworksheet1"))
?? (sh.sheet1)
print (sh.get_worksheet_by_id (0))

?? ( "?? ?? ??? ?? ?? ...")

## ?? ?? ??? ?????
sh.worksheets ()? ws? ?? :
    ?? (WS)

? ?? ???? ?? ?? ??? ?????

Python? ??? Google ?? ??? | ?? Vidhya

??? ?? ?? ???

???? ??? ?? ?? ?? ??? ??? ???? ???? ????? ???? ??? ?? ??? ?? ? ????. ? ???? ?? ?? ???? ???? ???? ??? ?? ??? ??? ?? ? ? ?? ? ? ????.

? ?? ??? ???? ?? ?? ??? "add_worksheet ()"??? ???????. ?? ?? ??? ?????.

  • ?? : ?? ?? ??
  • ?, ?, ?? (?? ??) : ?? ?? ? ?? ??? ? ? ? ?? ???????. "???"?? ??? ?? ???? ?? ??? ??? ?????.

?? ??? 100 ?? 20 ?? ???? ?? ??? ???? ?? ??? ? ?? ??? ?????.

 sh.add_worksheet ( 'articleworksheet1.5', rows = 100, cols = 20, index = 1)

??? ??? ??? ? ?? ??? ?????? (?? 1)

Python? ??? Google ?? ??? | ?? Vidhya

?? ??? ?? ???

?? ?? ??? update_title () ??? ???? ?? ?? ??? ??? ??? ? ??? ?? ??? ?? ?? ? ????.

 print (sh.worksheet ( "articleworksheet3"). update_title ( "articleworksheet2.5"))

?? ?? ??

?? ?? ??? ?? ??? ???? ???? ???? ?? ??? ??? ? ????.

  • ?? ?? ??? ???? ?? ??? ?????. “del_worksheet ()”??? ?? ?? ??? ?? ??? ?? ?? ???? ???? ?? ??? ?????.
  • ?? ?? ID? ???? ?? ??? ?????. "del_worksheet_by_id () ??? ?? ?? ID? ?? ??? ?????? ???? ?????.

???? ??? ??? ????? ??? ?? ??? ?? ????. ??? ? ??? ???? ???? ?? ?????.

 sh.del_worksheet (sh.worksheet ( "articleworksheet2.5"))
sh.del_worksheet_by_id ( '602396579')

?? ??

??? ??? ??? ??? ??? ?? ??? ?? ?? (??? ?? ???) ?? ? ?? ?????. ?? ?? ?? ??????. GSPread ?????? ?? ?? ??? ?????.

  • ? : ?? ? ??
  • col : ?? ? ??
  • ?? : ?? ?
  • ?? : A1 ????? ?? ??

?? ?? ??? ?? ?? ??? ??????. ????? ?? ?? ?? ??? ? ??? ???? ?????.

 samplecell = sh.worksheet ( "articleworksheet1"). cell (row = 1, col = 1)
print ( 'row : {} \ ncolumn : {} \ nvalue : {} \ naddress : {}'. ?? (samplecell.row, samplecell.col, samplecell.value, samplecell.address)

Python? ??? Google ?? ??? | ?? Vidhya

??? ???? ?? ??? ???? ?? ???? ??? ? ????.

??? ?? ? ??

?? ?? ?? ??? ??? ?? ?? ?? ??? ???? ?? ??? ?? ???? ?? ? ? ????. ?????? ??? GSPread ??????? ? ?? ???? ?????.

?? ???? ??

insert_row (), insert_rows () ? insert_cols () ??? ???? ?? ?? ??? ??? ???? ?? ??? ? ?? ?? ?? ? ? ????. ? ??? ???? ?? ??? ?? ??? ? ?? ?? ?? ? ? ????. ?? ?? ??? ??? ????.

  • insert_row : ??? ?? ? ? ???? "?"?? ??? ?????. ??? ? ??? ?? ? ?? ??? ?????. ???? 1?? 1?? ???? "???"?? ??? ? ?? ??? ?????. "value_input_option"? "inherit_from_before"? ?? ??? ?? ??? ??? ?? ???? ?? ???? ??? ???? UI?? ???? ??? ???? ?? ?? ????? ??? ?????.
  • insert_rows : ?? ?? ???? ?? "?"?? ??? ?? ??? ?????. ? ??? ?? ? ??????. ????? ??? GSPread? ?? ?? ?? ??? ???? ??? ?? ?????. "insert_row ()"??? "insert_rows ()"??? ????? "insert_row ()"??? ?? ?? ? ?? ?? ??? ??? ?? ??? ??? "insert_rows ()"? ????. insert_row () ???? ??? ?? ??? ???? ???? ???? insert_rows () ???? ? ?? ??? ?????.
  • insert_cols : ? ??? "row"?? "col"? ???? ?? ?? ?? ??? ??? "insert_rows ()"??? ??????. ??? ??? ?? ?? ??? ???? ?????.

??? ?? ? ??

? ??? ??? ?????. ??? ???? ?? ?? ??? ??? ?? ?? ? ? ????. ??, ??? ?? ?? ?? ?? ???? ?? ? ? ????.

  • ?? : "?"?? ??? ?? ? ?? ???? ?????. "table_range"?? ??? ? ??? ?? ???? ??? ??? ???? ? ??????. ??? A1 ????? ?????.
  • ?? : "insert_rows ()"? ????? "insert_rows ()"? ??? ?? ??? ? ??? ?? ?????. ? ??? ?? ?? ?? ??? "actend_rows ()"? "?"?? ???? ?? ??? ?? ?? ??? ???? ?????.

??? ??? ????.

  • ?? ?? ?? ????? : A, B, C ? D
  • ? ?? 4 ?? ?? ?????
 SampleWorksheet.insert_row (
    [ 'a', 'b', 'c', 'd']]]
))
sampleworksheet.insert_rows (
    [? ?
        [ 'kg', 54, 23, 12],
        [ 'Og', 34, 12, 34],
        [ '?', 23, 45, 90],
        [ 'Ye', 65, 12, 54]
    ], ? = 2
))

Python? ??? Google ?? ??? | ?? Vidhya

?? ??? ?? ??? ???????.

  • ? ??? ???? 2 ?? ?? ??????
  • ?? ? e? ??????
 SampleWorksheet.append_rows (
    [? ?
        [ 'sn', 67, 87, 45],
        [ 'ar', 56, 23, 65]
    ],,
    table_range = "a1 : d5"
))
SampleWorksheet.insert_cols (
    [? ?
        [ 'e', ??56, 34, 65, 34, 76, 45]
    ],,
    col = 5
))

Python? ??? Google ?? ??? | ?? Vidhya

?? : SampleWorksheet ??? ?? ?? ??? ???? ??? ??? ??? ?????.

??? ?? ?? ?? ??

??? ????? ??? ?? ??? ???? ????? ???? ???? ??????. ?? ??? ?? ??? ???? ?? ? ???? ??? ? ????. ??? ?? ?? ?? ????? ??? ?? ?? ?? ???? ?? ?? ?? ?? ?????.

?? ? ?? ??

?? ???? ?? ???? ?? ??? ?? ??? ?? ??? ? ?? ?? ? ??? ?? ????. ?? ?? ?? ??? ? ?? ??? ????.

  • ACELL : ??? ? ??? A1 ????? ??? ? ??? ?????.
  • ? : ??? (?, ?) ???? ? ??? ????.

? ? ?? ?? ? ??? ???? ?? ??? ???? ?? ?? ??? ?????. Acell ??? Google Sheets API? ??? ?? ? ???? ???????.

 print (sampleworksheet.acell ( 'a1'). ?)
print (sampleworksheet.cell (1, 1) .Value)

?? ?? ?? ??? ?? ?? ?????

  • ?? ?? ??? "get_all_cells ()"??? ???? ? ?? ???? ?? ??? ?? ?? ?? ? ????. ? ???? ?? ??? ??? ?? ?? ???? ?? ?? ? ? ????.
  • ?? ??? ? ??? ?? ??? ?? ?? ??? ?? () ??? ??????. ? ??? A1 ???, ?? ?? ?? ?? ? ??? ?? ??? ?? ??? ?????. ???? ???? ?? API ??? ?? ??? ?? ?? ?????. ? ??? ??? ?? ??? ??? ??? ??? ?? ????? ?? ??? ???? ? ??????.
 print (sampleworksheet.get_all_cells ())
print (sampleworksheet.range ( 'b4 : e5'))

?? ??? ?? ?????

???? ????? ? ?? ???? ?? ??? ?? ???? ?? ???? ???? ????. ??? ??, ???? ??? ??? ??? ??? ?? ?? ??? ???????. ??? ??? ??? ?? ??? ?? ?? ??? ?? ? ??? ??? ? ????.

  • get : "get ()"??? A1 ??? ?? ??? ???? ??? ??? ??? ? ?? ??? ?????.
  • batch_get : "get ()"??? ??? ???? ?? ? ??? ?? ??? ??? ?? Batch_get? ??? ? ????. ? ??? ??? API ????? ??? ?????.
 print ( 'get range : {}'. ?? (sampleworksheet.get ( "a1 : d4")))
print ( '?? get ?? : {}'. ?? (sampleworksheet.batch_get (
    "A1 : D4",
    "B4 : E3"
])))

Python? ??? Google ?? ??? | ?? Vidhya

??? ??? ?? ?? ?? ??

?? ?? ??? "row_values ??()"? "col_values ??()"??? ???? ? ?? ?? ?? ?? ??? ? ????. ? ?? ?? ? ?? ?? ?? (1) ??? ??? ??? ?? ?????.

 print (sampleworksheet.row_values ??(1))
print (sampleworksheet.col_values ??(4))

Python? ??? Google ?? ??? | ?? Vidhya

?? ?? ?? ?? ?????

?? ?? ??? ?? ?? ?? ?? ?? ?? ? ???? ???? Pandas ??? ???? ???? ? ?? ?? ??? ?? ? ?? ?? ??? ???? ????. ?? ???? ?? ?? ??? ?? ??? ???? ?? ? ? ????.

  • ?? ?? : "get_all_values ??()"??? ?? ?? ???? ?? ? ?? ?? ?? ??? ??? ?????. ? ??? "get_values ??()"???? ????? ????? "get_values ??()"??? "get ()"??? ???? ?????. ????? "get ()"??? ?? ??? ?????. ??? 3 ?? ?? ?? ?????.
  • ?? ?? : "get_all_records ()"??? ?? ??? ?????. ? ??? ?? 1 ? ??? ?? ? ??? ?? ? ? ?????. ?? ?? ??? ????. ????? ? ?? ?? ??? ????? "??"?? ??? ???? ?? ?? ?? ? ? ????. ? ?? ?? ??? ???? ? ????? ? ?? ?? ?? ??? ????.

? ??? ??? Pandas Dataframe ??? ?? ???? ?? ?? ???? Pandas Dataframe?? ?? ? ????.

 ??? PD? ?????
print (pd.dataframe (sampleworksheet.get_all_records ()))
print (pd.dataframe (sampleworksheet.get_all_values ??()))

Python? ??? Google ?? ??? | ?? Vidhya

?? ??? ???????

???? ??? ?? ???? ?????? ?? GSPread ????? ??? ???? ?? ?? ? ??? ?? ??? ?????. ???? ??? ?, ?? ? ????? ??? ?? ?? ???? ? ?? ?? API ??? ?? ??? ?????? ?? ?? ??? ????.

?? ? ????

?? ?? ??? ?? ??? ???? ?? ??? ?? ?? ???? ? ? ????.

  • Update_acell : ? ??? A1 ???? ? ??? ???? ? ?? ? ?? ??? ?????.
  • update_cell : ? ??? ?? ??? ? ?? ??? ???? ??? ?????.
  • ???? : ? ??? ?? ?? ???? ? ??? ??? ? ?? ? ?? ?? ?????? ? ??? ?? ????. ?? ?? ?? ??? ?? ? ??? ????. "update ()"??? ?? ??? ? ?? ???, ? ??? ?????.
 print (sampleworksheet.update_acell ( 'a2', 'kaustubh')))
print (sampleworksheet.update_acell ( 'a3', 'oggy'))))
print (sampleworksheet.update ([[ 'hello']]], 'a4')))

Python? ??? Google ?? ??? | ?? Vidhya

??? ?? ???????

?? ?? ???? ?? ? ??? ???? ?? ??? ??? ?? ???? ? ? ????.

  • Update_Cells : ? ??? "range ()"??? ?? ?? ? ?????. "update_cells ()"??? ? ???? ??? ????. ? ? ??? ?? ???? ?? ? ? ??? ???? ? ??? ????? ?? ??? ? ????.
  • ???? : ?? ? ?????? ??? ? ? ???? ??? ???? ??? ??? ?? ?? A1 ?? ??? ???? ? ? ????.
 RangeOfCells = SampleWorkSheet.Range ( 'B2 : B7')
?? ?? ?? ?? :
    newValue = int (cell.value) 10
    cell.value = newValue
print (sampleworksheet.update_cells (rangeofcells))

?? ??? ??? ? ??? ???? ?? 10? ???? ?? API ??? ???????.

?? ??? ?? ???????

?? ????? ?? API ??? ???? ?? ?? ???? ? ??????. ? ??? ?? ??? ?? ? ? ????. ?, ? ?? ??? ?? ??? ?? ???? ? ? ????. "batch_update ()"??? ?? ?? ? ??? ?? ?? ?? ??? ????. ?? ? ?? A1 ??? ?? ?? ?? ?? ???? ? ? ?? ? ?? ?????.

 ?? 1 = 'C2 : C7'
?? 2 = 'e2 : e7'
BothRangeValues ??= SampleWorksheet.batch_get ([
    ?? 1,
    ?? 2
])))
Range1Values, Range2Values ??= BothrangeValues
Range1updatedValues ??= [[int (x [0]) 10] range1Values?? x? ??]
Range2updatedValues ??= [[int (x [0]) 20] Range2Values?? x? ?? x]
print (sampleworksheet.batch_update ([
    {
        '??': ?? 1,
        '?': Range1updatedValues
    },

    {
        '??': Range2,
        '?': range2updatedValues
    }
])))

?? ??? "batch_get ()"??? ???? ? ?? ??? ??? ?? ??? ?? ???? ? ?? "batch_update ()"??? ???? ???? ? ?? Google ??? ?????. ? ????? ??? ??? ????.

Python? ??? Google ?? ??? | ?? Vidhya

?? ? ??

? ???? ?? ??? ???? ??, ?? ? ????????. ?? ???? ?? ?? ???? ???? ???? ?? ?? ??? ?? ? ? ????. "delete_rows ()"? "delete_colums ()"??? "start_index"? ?????. "end_index"? ???? ?? ? ?? ??? ???? ?? ?? ?????.

 print (sampleworksheet.delete_columns (4))
print (sampleworksheet.delete_rows (6))

?? ??

Google Sheets API? ???? ????? ?? ???? ???? ?? ?? ? ? ????. ?? ??? ????? ??? ??? ??? ???? ??? ?? ??? ?? ??? ?? ?? ? ????. ? ? ?? ?? ??? ???? ???? ?? ?????.

  • find : "find ()"??? ??? ? ?? ??? ?????. ?? ?? ??? ?? Regex, "in_row"?? "in_column"?? ??? ???? ?? ??? ???? ?? ?? ? "case_sensentitive"???? ??? ?? ????. "in"?? ??? ? ?? ? ??? ???? (?? 1)
  • findall : "findall ()"? ??? ?? ??? ???? "find ()"??? ?? ?????.
 ?? ?? re
print (sampleworksheet.find ('64 ', in_column = 2))
searchRe = re.comPile (r '(a | a)')
print (sampleworksheet.findall (searchre))

Python? ??? Google ?? ??? | ?? Vidhya

?? ?

Excel??? ??? ?????, ??, ??, ?? ? ??? ??? ???? ??? ???? ?? ??? ?? ? ? ????. Google Sheets? ?? ?? ?? ??? ?? ??? ?????. ?? ?? ??? Google Sheets Cell Documentation ?? ?????.

gspread ?? ?? ??? Format () ??? ???? ??? ?? ? ? ?? ??? ??? ? ????. ?? ??? ?? ?? ? ?? ?? ???? JSON ???? ??? ??????.

?? ??? ???? ?? ?? ???? ?????.

 Borderformatting = {
    "???": "Solid",
    "Colorstyle": { "rgbcolor": { "red": 0, "green": 0, "blue": 0, "alpha": 1}},
}

??(
    ?? worksheet.format (
        "A1 : D6",
        ?? = {
            "??": {
                "??": Borderformatting,
                "??": Borderformatting,
                "??": Borderformatting,
                "???": Borderformatting,
            },
        },
    ))
))

?? ??? ???? ??? ?? ??? ??? ? ? ????. ?? ?? ?? ??? ??? ?? ?? ??? ??? ???? ? ?? ??? ?????. "batch_format ()"??? ? ?? ??? ?? ???? ?? ??? ?????. ? ?? ?? ?? ??? ?? ??? ???? ?? ?? ???? ?? ????.

"batch_format ()"??? ???? ?? ????? ??? ???????.

  • ???? ?? ?? ??? ?????.
  • ? ?? ?? ???? ?? ???? ???? ???? ?? ?????.
  • ??? ?? ???? ??????.
  • ?? ?? ???? ?????? (? ?? ?).
 Borderformatting = {
    "???": "Solid",
    "Colorstyle": { "rgbcolor": { "red": 0, "green": 0, "blue": 0, "alpha": 1}},
}
?? = [
    {
        "??": "A1 : D6",
        "??": {
            "??": {
                "??": Borderformatting,
                "??": Borderformatting,
                "??": Borderformatting,
                "???": Borderformatting,
            },
            "???": "??",
        },
    },
    {
        "??": "A1 : D1",
        "??": {
            "TextFormat": {
                "Bold": ??,
            },
            "BackgroundColorStyle": {
                "rgbcolor": { "???": 0.8, "??": 0.8, "blue": 1, "alpha": 0.8}
            },
        },
    },
]]

print (sampleworksheet.batch_format (??))

??? ??? ?? ???? ?? ?????.

Python? ??? Google ?? ??? | ?? Vidhya

??? ??? ?? ?? ??

??? ???? ?? ??? ??? ?? ?? ????. ? ??? ???? ?? ?? ??? "batch_clear ()"??? ?????. ??? ?? ???? ?? ??? ????. ?? ????? ? C? ??????.

 print (sampleworksheet.batch_clear ([ "c1 : c6"])))

Python? ??? Google ?? ??? | ?? Vidhya

?? : CLEAR ??? ??? ??? ?? ?? ??? ?? ??? ????.

?? ?? ??? "Clear ()"??? ???? ?? ?? ??? ?? ? ????.

 print (sampleworksheet.clear ())

Python? ???? Google ??? ????? ??? ??? ??? ??????.

Google API? ??

GSPread ?????? ???? Google ???? ?? ??? ??????. ? ?????? ???? ?? ? ???? ?? ??? ???? ???? Sheets? ??? Google ????? API ??? ??? ?? ?????. ???? ?? API ??, ???? ? ??? ??? ??? ??? ?????. ???? ?? ??? ? ?? ?????.

  • API ??? ?? ?? : ???? API ??? ?? ?? ? ??? ??? ?? ???? ???? ??? ???????.
  • ????? ??? ?? : Google Sheets API? ????? API ?? ?? ??? ????.
  • ???? ?? - 429 ( "?? ?? ??") : ?? ???? API ?? ??? ???? 429 ??? ????.
  • ??? ?? ? : ?? ???? ???? ? ?? 300 ?? ??? ?????.
  • ??? ?? : ????? 300 ? ??? ??? ??? ?? ??? ???? ????.
  • ?? ? ?? ??? : ??? ?? ??? ???? ?? ? ??? ?? ? ?? ????? ??? ??? ???? ? ??? ? ? ????.

??

? ?????? Google Sheets UI?? ?? ? ?? ??? ?????? Google ??? ??? ??????. ??? ??, ???? ? ??? ?? ?? ??? ??????. ?? Python? ???? ??? Google ?? ???? ???? ??? ?? ?????.

Google Sheets API? ? ??, ?? ?? ???, ?? ???, ?? ??, ?? ?? ?? ?? ?? ? ?? ??? ????? ???? ?????! GSPread ?????? ?? ???? ??? ??? ????? Google Sheets ?? ??? ???? ????? ?? ? ?? ??? ?? ?? ??? ??? ???? GSPread ??? API ?? ??? ??? ? ????.

?? ??? ??

  • Google Sheets Automation?? ??? ?? ?? Google ???? ????? ???????. ??? ??? ????? ??? ???? ???? ??? ??? ??? ??? ? ????. ??? ? ?? ??? ???? ?? ??????.
  • Google Sheets API? ???? ?? ? ??? ???? ?? ??? GSPread ?????? ??? ?????. ?????? ?? ? ??? ???? ?? ?? ??? ???????.
  • Google Sheets ??? ??? ???? ??? ???? ???? OLAP ??????? ?? ?? ??????? ???? ?? ??? ??? ?? ? ? ????. ? ??????? Tableau? ?? BI ?????? ???? ?? ? ?? ????? ??????.
  • Google Sheets ???? ???? ???? ????, ?? ?? ?? ???? ?? ??? ???? ???? ?? ???? ?? ??? ??? ???? ? ??? ? ? ????.
  • Google ?? ???? ???? ??? ???, ?? ?? ?? ? ????? ?? ???? ??? ???? ??? ? ?? ??? ???? ?? ? ????.

?? ?? ??

Q1. "429 : ?? ?? ??"??? ??? ?? ??? ? ? ?????

A. ? ?? ?? ?????? ? ?? ????? ????????. ??? ? ? ??? ?? ? ?? ???????

Q2. Google ???? ???? ? ? ?????

A. ?, ??? , Google Apps ???? ? Zapier ?? Make (??? intembromat) ? ?? ? 3 ? ??? ?? ?? ??? ???? Google ???? ??? ??? ? ? ????. ?? ?? ??? ??, ?? ? ??? ?? ??? ? ??? ??? ? ? ????.

Q3. Google?? ??? ??? ?????

A. Google? Google Workspace ? (? : Sheets, Docs, Gmail)?? ??? ??????? JavaScript ?? ??? ? Google Apps ????? ?????. Additionally, tools like Google Cloud Workflows and Zapier integrations can be used for broader automation across Google services.

Q4. How can I set up Google Sheets automations to save time on repetitive tasks?

A. You can set up Google Sheets automations using built-in tools like Macros and Google Apps Script. Macros allow you to record actions and replay them, while Google Apps Script lets you create custom automations using JavaScript. These automations can streamline repetitive tasks such as data entry, formatting, or running specific functions automatically in Google Sheets.

Q5. What are some popular Google Sheets automations for data analysis?

A. Popular Google Sheets automations for data analysis include automated data import from external sources, scheduled reports using Google Apps Script, and conditional formatting to highlight trends. These automations help optimize the data analysis process, making Google Sheets a powerful tool for managing and interpreting large datasets efficiently.

? ??? Python? ??? Google ?? ??? | ?? Vidhya? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

? ??? ?? ?? ?????(SublimeText3)

???

??? ??

??? ????
1597
29
PHP ????
1488
72
NYT ?? ??? ??
130
836
???
AGI? AI Superintelligence? ?? ?? ?? ??? ?? ?????. AGI? AI Superintelligence? ?? ?? ?? ??? ?? ?????. Jul 04, 2025 am 11:10 AM

??? ?? ??????. ???? AI ??? ??? ??? ??? ??? AI ???? ???? ???? ?? ???? AI? ?? Forbes ? ??? ????? (?? ?? ??). AGI? ??? ????

Kimi K2 : ?? ??? ?? ?? ???? ?? Kimi K2 : ?? ??? ?? ?? ???? ?? Jul 12, 2025 am 09:16 AM

?? ? Genai ??? ?? ? ?? ?? ?? ??? ??? ??????? DeepSeek? ???? ?? ??? ?? ??? Kimi K1.5? ???? ???? ?? ? ??????. ??? ??? ?? ??????.

Grok 4 vs Claude 4 : ?? ?? ? ????? Grok 4 vs Claude 4 : ?? ?? ? ????? Jul 12, 2025 am 09:37 AM

20125 ? ???? AI“?? ??”? ???? ??? Xai? Anthropic? ???? ?? ? Grok 4? Claude 4? ??????.? ? ??? ??? ??? ?? ???? ??? ?? ????.

?? ??? ??? ?? ??? ?? ? ???? ?? ??? ? ?? ?? ??? ??? ?? ??? ?? ? ???? ?? ??? ? ?? Jul 04, 2025 am 11:11 AM

??? ?? ? ???? : ??? AI? ?? ??? ???? ???? AI? ??? ???? ????? ??, ???? ? ???? ?? ??? ?????.

???? ??? ? ??? ????? ?? AI ???? ????. ???? ??? ? ??? ????? ?? AI ???? ????. Jul 03, 2025 am 11:16 AM

7 ? 1 ? ?? ??? ?? ??? ?? ?? ??? 5 ??? ??? ???? ??? ????? ??? ?? ? ?? ? ?? ??????.

??? ?? ??? ?? ?? ??? ??? ?? 10 ? ??? ?? ??? ?? ?? ??? ??? ?? 10 ? Jul 16, 2025 am 11:12 AM

??? ??? ??? 10 ?? ??? ??? ?? ????. ???, ???? ???? ??? ?? ??? ? ?? ??? ?? ? ??? ?? ?? ??? ????. ?? ? ? ?? ?? ??? ??? ?? ??? T?? ??? ?? ?????.

???? ?????? ' New ' ???? ????? ???? ?????? ' New ' ???? ????? Jul 12, 2025 am 09:33 AM

?? ?? ???? ?????? ?? ?? ?? (LLM)? ?? ???? ? ??? ??? ???????. ??? ??? LLM? ??? ???? ?? ??????. ??? ??? ??

Chip Ganassi Racing? OpenAI? Mid-Ohio Indycar ???? ?????? Chip Ganassi Racing? OpenAI? Mid-Ohio Indycar ???? ?????? Jul 03, 2025 am 11:17 AM

???? ?? ??? ?? ?? ?? ? ?? ? Openai? 3 ?? NTT IndyCar ??? ???? 2025 ???? ??? 500 ??? Alex PA? ??? No. 10 Chip Ganassi Racing (CGR) Honda? ?? ???? ??? ????.

See all articles