Sharon bought a mixture of nuts that was made up of pecans, walnuts and cashews in a ratio by weight of $2:3:1$, respectively. If she bought $9$ pounds of nuts, how many pounds of walnuts were in the mixture? Express your answer as a decimal to the nearest tenth.