As per the trends in the periodic table, it can be seen that the metallic character decreases going from top to bottom in a group.
Similarly, the metallic character decreases while moving from left to right in a period.
Applying the above concept we can conclude that group 17(halogens) and group 18(inert gases) possess the least metallic character in the periodic table.