จำนวนคะแนนเสียงเฉลี่ยของผู้แทนจากพรรค "รีพับลิกัน" คือเท่าไร?
What is the average number of votes of representatives from party "Republican"?
df_election = pd.DataFrame(columns=['Votes', 'Representative_ID']); df_representative = pd.DataFrame(columns=['Representative_ID', 'Party'])
pd.merge(df_election, df_representative[df_representative['Party'] == 'Republican'], on='Representative_ID')['Votes'].mean()