|
780 | 780 | "metadata": {}, |
781 | 781 | "outputs": [], |
782 | 782 | "source": [ |
783 | | - "stat_2 = broadway_ave_layer.query(where='1=1',\n", |
784 | | - " return_geometry=False,\n", |
785 | | - " out_fields='Length',\n", |
786 | | - " out_statistics=[{\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"countField\"},{\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},{\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},{\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},{\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},{\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}])" |
| 783 | + "stat_2 = broadway_ave_layer.query(\n", |
| 784 | + " where='1=1',\n", |
| 785 | + " return_geometry=False,\n", |
| 786 | + " out_fields='Length',\n", |
| 787 | + " out_statistics=[\n", |
| 788 | + " {\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"countField\"},\n", |
| 789 | + " {\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},\n", |
| 790 | + " {\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},\n", |
| 791 | + " {\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},\n", |
| 792 | + " {\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},\n", |
| 793 | + " {\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}\n", |
| 794 | + " ]\n", |
| 795 | + ")" |
787 | 796 | ] |
788 | 797 | }, |
789 | 798 | { |
|
981 | 990 | "metadata": {}, |
982 | 991 | "outputs": [], |
983 | 992 | "source": [ |
984 | | - "stat_3 = ave_layer.query(where='1=1',\n", |
985 | | - " return_geometry=False,\n", |
986 | | - " out_fields='Length',\n", |
987 | | - " out_statistics=[{\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"countField\"},\n", |
988 | | - " {\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},\n", |
989 | | - " {\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},\n", |
990 | | - " {\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},\n", |
991 | | - " {\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},\n", |
992 | | - " {\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}])" |
| 993 | + "stat_3 = ave_layer.query(\n", |
| 994 | + " where='1=1',\n", |
| 995 | + " return_geometry=False,\n", |
| 996 | + " out_fields='Length',\n", |
| 997 | + " out_statistics=[\n", |
| 998 | + " {\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"countField\"},\n", |
| 999 | + " {\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},\n", |
| 1000 | + " {\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},\n", |
| 1001 | + " {\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},\n", |
| 1002 | + " {\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},\n", |
| 1003 | + " {\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}\n", |
| 1004 | + " ]\n", |
| 1005 | + " )" |
993 | 1006 | ] |
994 | 1007 | }, |
995 | 1008 | { |
|
1185 | 1198 | "metadata": {}, |
1186 | 1199 | "outputs": [], |
1187 | 1200 | "source": [ |
1188 | | - "stat_4 = capitol_hill_lyr.query(where='1=1',\n", |
1189 | | - " return_geometry=False,\n", |
1190 | | - " out_fields='Length',\n", |
1191 | | - " out_statistics=[{\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\n", |
1192 | | - " \"outStatisticFieldName\":\"countField\"},\n", |
1193 | | - " {\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},\n", |
1194 | | - " {\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},\n", |
1195 | | - " {\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},\n", |
1196 | | - " {\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},\n", |
1197 | | - " {\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}])" |
| 1201 | + "stat_4 = capitol_hill_lyr.query(\n", |
| 1202 | + " where='1=1',\n", |
| 1203 | + " return_geometry=False,\n", |
| 1204 | + " out_fields='Length',\n", |
| 1205 | + " out_statistics=[\n", |
| 1206 | + " {\"statisticType\":\"count\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"countField\"},\n", |
| 1207 | + " {\"statisticType\":\"sum\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"sumField\"},\n", |
| 1208 | + " {\"statisticType\":\"min\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"minField\"},\n", |
| 1209 | + " {\"statisticType\":\"max\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"maxField\"},\n", |
| 1210 | + " {\"statisticType\":\"avg\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"avgField\"},\n", |
| 1211 | + " {\"statisticType\":\"stddev\",\"onStatisticField\":\"Length\",\"outStatisticFieldName\":\"stddevField\"}\n", |
| 1212 | + " ]\n", |
| 1213 | + " )" |
1198 | 1214 | ] |
1199 | 1215 | }, |
1200 | 1216 | { |
|
1651 | 1667 | "metadata": {}, |
1652 | 1668 | "outputs": [], |
1653 | 1669 | "source": [ |
1654 | | - "stat_5 = clip_lyr.query(where='1=1',\n", |
1655 | | - " return_geometry=False,\n", |
1656 | | - " out_fields='TOTPOP_CY',\n", |
1657 | | - " out_statistics=[{\"statisticType\":\"count\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"countField\"},\n", |
1658 | | - " {\"statisticType\":\"sum\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"sumField\"},\n", |
1659 | | - " {\"statisticType\":\"min\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"minField\"},\n", |
1660 | | - " {\"statisticType\":\"max\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"maxField\"},\n", |
1661 | | - " {\"statisticType\":\"avg\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"avgField\"},\n", |
1662 | | - " {\"statisticType\":\"stddev\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"stddevField\"}])" |
| 1670 | + "stat_5 = clip_lyr.query(\n", |
| 1671 | + " where='1=1',\n", |
| 1672 | + " return_geometry=False,\n", |
| 1673 | + " out_fields='TOTPOP_CY',\n", |
| 1674 | + " out_statistics=[\n", |
| 1675 | + " {\"statisticType\":\"count\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"countField\"},\n", |
| 1676 | + " {\"statisticType\":\"sum\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"sumField\"},\n", |
| 1677 | + " {\"statisticType\":\"min\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"minField\"},\n", |
| 1678 | + " {\"statisticType\":\"max\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"maxField\"},\n", |
| 1679 | + " {\"statisticType\":\"avg\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"avgField\"},\n", |
| 1680 | + " {\"statisticType\":\"stddev\",\"onStatisticField\":\"TOTPOP_CY\",\"outStatisticFieldName\":\"stddevField\"}\n", |
| 1681 | + " ]\n", |
| 1682 | + " )" |
1663 | 1683 | ] |
1664 | 1684 | }, |
1665 | 1685 | { |
|
1848 | 1868 | "name": "python", |
1849 | 1869 | "nbconvert_exporter": "python", |
1850 | 1870 | "pygments_lexer": "ipython3", |
1851 | | - "version": "3.12.11" |
| 1871 | + "version": "3.13.5" |
1852 | 1872 | } |
1853 | 1873 | }, |
1854 | 1874 | "nbformat": 4, |
|
0 commit comments