You have a DataFrame called sales with columns: ‘region’, ‘p…
You have a DataFrame called sales with columns: ‘region’, ‘product’, ‘quantity’, and ‘revenue’.Write the Pandas code to:Filter the DataFrame to only include rows where revenue is greater than 1000Group the filtered data by ‘region’ and calculate the total quantity sold per regionShow the complete code for both operations.