About course random sampling and datavisualization

hello sir , can you explain how random sampling works formula … i dont understand how the values comes for random sampling in compareprops

second ques
cbar.ax.set_yticklabels(["$%dk"%(round(v/1000)) for v in tick_values], fontsize=14)
pls sir explain the role of this line

Hi Akanksha_Bali,

Can you please share a screenshot of the concept/code block you are confused about regarding Random Sampling and compare props? I will try to explain as much as I can in general terms. See if it helps.

Please do the same for the 2nd Question too.

Thanks!