To sample rows from a pandas DataFrame with weights, you can use the sample() function with the weights parameter. The weights parameter allows you to specify the probability of each row being selected.