The by-election was necessitated after N Rangasamy, who had won from both Thattanchavady and Mangalam in the April assembly elections