Whats wrong in this SQL query call from python?

You have to pass data in argument.

frappe.call({
    method: 'erpnext.erpnext.selling.doctype.graphtesting.graphtesting.state_wise',
    args: {
                	    bname:frm.doc.state
     },
    callback: function(response) {
       console.log(response.message);
    }
  });

Got It.

Thanks for the help