<jupyter_start><jupyter_text>1. Take a random sample of 15 records and then show how we can sort by the Sales column and then by both the Sales and State columns together:<jupyter_code>df_sample = df[['Customer Name','State','Sales','Quantity']].sample(n=15) 

df_sample<jupyter_output><empty_output><jupyter_text>2. Sort the values with respect to Sales<jupyter_code>df_sample.sort_values(by='Sales')<jupyter_output><empty_output><jupyter_text>3. Sort the values with respect to Sales and State<jupyter_code>df_sample.sort_values(by=['State','Sales'])<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup