<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">Hey!</span><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">I have a question about calculating distances within sets of points. If I have lists of voters (</span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">voters</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">) with different districts referenced on it,  and I want to create sets of CSV's that show different statistics about points within districts and combinations of districts.   So, for example, imagine that I want to look at points where </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">voters.state</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> = 'TX' and I want to create a new table that shows the </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;"><a target="_blank" class="c-link" data-stringify-link="http://voter.cd" delay="150" data-sk="tooltip_parent" href="http://voter.cd/" rel="noopener noreferrer" style="box-sizing: inherit; color: rgba(255, 255, 255, 0); text-decoration: none;">voter.cd</a></code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> (Congressional District), </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">min_distance_between_points</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> , </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">avg_distance_between_points</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">, </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">max_distance_between_points</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> ,  or what if I wanted to do the same for  voters.cd</span><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> , </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;">voters.county</code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">, looking at voters that had both?  I think that there are ways to do this with the </span><code data-stringify-type="code" class="c-mrkdwn__code" style="box-sizing: inherit; padding: 2px 3px 1px; border: 1px solid var(--saf-0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px; background-color: rgba(255, 255, 255, 0); color: rgb(244, 135, 10); --saf-0:  rgba(var(--sk_foreground_low,29,28,29),0.13); line-height: 1.50001; font-variant-ligatures: none; white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; tab-size: 4; orphans: 2; widows: 2; font-family: Monaco, Menlo, Consolas, "Courier New", monospace !important;"><-></code><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""> distance operator but it is not clear to me.</span></div><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">Thanks,</span></div><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class=""><br class=""></span></div><div class=""><span style="color: rgb(55, 56, 58); font-family: Slack-Lato, appleLogo, sans-serif; font-size: 15px; font-variant-ligatures: common-ligatures; orphans: 2; widows: 2; background-color: rgb(255, 255, 255);" class="">Dheeraj</span></div></body></html>