"evalue": "unexpected indent (<ipython-input-21-fe8ee5f1b5a0>, line 6)",
"output_type": "error",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-21-fe8ee5f1b5a0>\"\u001b[0;36m, line \u001b[0;32m6\u001b[0m\n\u001b[0;31m for p in apply_list:\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mIndentationError\u001b[0m\u001b[0;31m:\u001b[0m unexpected indent\n"
"evalue": "invalid syntax (<ipython-input-23-51515430e9dc>, line 2)",
"traceback": [
"\u001b[0;36m File \u001b[0;32m\"<ipython-input-23-51515430e9dc>\"\u001b[0;36m, line \u001b[0;32m2\u001b[0m\n\u001b[0;31m person_sql ='(select count(MALE) from person where sex = 'MALE' union all select count(FEMALE) from person where sex = 'FEMALEMALE')'\u001b[0m\n\u001b[0m ^\u001b[0m\n\u001b[0;31mSyntaxError\u001b[0m\u001b[0;31m:\u001b[0m invalid syntax\n"
],
"output_type": "error"
}
],
"source": [
"# # 查询person表\n",
"person_sql ='(select count(MALE) from person where sex = 'MALE' union all select count(FEMALE) from person where sex = 'FEMALEMALE')'\n",