可以将Java转换为Python吗? 5行Excel脚本

I'm trying to filter data from my database in csv file, so what i'm willing to do is to delete the rows based on cell values in a column, this page explain exactly what i want to achieve using python : https://www.extendoffice.com/documents/excel/5284-google-sheets-delete-rows-containing.html I've found a script code there but i think it's for java. I'm a python developer if anyone can help me

function deleteRows() {
  var ss = SpreadsheetApp.getActiveSpreadsheet();
  var s = ss.getSheetByName('delete containing');
  var r = s.getRange('C:C');
  var v = r.getValues();
  for(var i=v.length-1;i>=0;i--)
    if(v[0,i]=='Complete')
      s.deleteRow(i+1);
};