When the court finds that one or more of the votes cast in a contested election are illegal or fraudulent, the judge shall subtract such vote or votes from the total votes cast for the candidate who received them if the contest involves election to office, from the total vote for or against a proposition if the contest is of an election upon a proposition, or from the total vote for or against the recall of a public officer if the contest involves an election for the recall of a public officer. If the court determines that legal votes cast in the election were excluded in the total votes cast on a candidate, proposition, or recall, then these excluded legal votes shall be added to the total votes on the candidate, proposition, or recall to which they are attributable. Thereafter, and after considering all the evidence, the court shall determine the result of the election.
La. R.S. § 18:1431