A fallacy of composition arises when one infers that something is true for all when it is true of some (or even every) part.
fallacy of composition