Combining Latitude/Longitude position into single feature Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsTrajectory data mining and pattern recognition using ORB-SLAM and KNN-DTWHow to reduce dimensionality of audio data that comes in form of matrices and vectors?Ways to deal with longitude/latitude featureTensor Decomposition in TensorFlow for multinomial time series dimensionality reductionDistance measure calculation addresses for record linkingHow to add time as a feature into clustering algorithm?How to transpose rows into single column based on time-stamp index in python?Handling missing values to optimize polynomial featureshow to convert multiple columns into single columns in pandas?How can I combine two single-column datasets into a single Pandas data frame?

A term for a woman complaining about things/begging in a cute/childish way

Why does it sometimes sound good to play a grace note as a lead in to a note in a melody?

Illegal assignment from sObject to Id

Why aren't air breathing engines used as small first stages?

Are all finite dimensional hilbert spaces isomorphic to spaces with Euclidean norms?

What is this clumpy 20-30cm high yellow-flowered plant?

Do I really need to have a message in a novel to appeal to readers?

Is there a kind of relay only consumes power when switching?

How do I use the new nonlinear finite element in Mathematica 12 for this equation?

How does light 'choose' between wave and particle behaviour?

Localisation of Category

When a candle burns, why does the top of wick glow if bottom of flame is hottest?

Denied boarding although I have proper visa and documentation. To whom should I make a complaint?

Project Euler #1 in C++

The code below, is it ill-formed NDR or is it well formed?

Should I follow up with an employee I believe overracted to a mistake I made?

What's the meaning of "fortified infraction restraint"?

Question about debouncing - delay of state change

Using et al. for a last / senior author rather than for a first author

As a beginner, should I get a Squier Strat with a SSS config or a HSS?

How does the math work when buying airline miles?

Should I use a zero-interest credit card for a large one-time purchase?

Find 108 by using 3,4,6

How do I make this wiring inside cabinet safer?



Combining Latitude/Longitude position into single feature



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsTrajectory data mining and pattern recognition using ORB-SLAM and KNN-DTWHow to reduce dimensionality of audio data that comes in form of matrices and vectors?Ways to deal with longitude/latitude featureTensor Decomposition in TensorFlow for multinomial time series dimensionality reductionDistance measure calculation addresses for record linkingHow to add time as a feature into clustering algorithm?How to transpose rows into single column based on time-stamp index in python?Handling missing values to optimize polynomial featureshow to convert multiple columns into single columns in pandas?How can I combine two single-column datasets into a single Pandas data frame?










0












$begingroup$


I have been playing with 2 dimensional machine learning using pandas (Trying to do something like this: https://github.com/freeman-lab/spark-ml-streaming), and I'd like to combine Lat/Long into a single numerical feature -- ideally in a linear fashion. Is there a "best practice" to do this?










share|improve this question







New contributor




mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







$endgroup$
















    0












    $begingroup$


    I have been playing with 2 dimensional machine learning using pandas (Trying to do something like this: https://github.com/freeman-lab/spark-ml-streaming), and I'd like to combine Lat/Long into a single numerical feature -- ideally in a linear fashion. Is there a "best practice" to do this?










    share|improve this question







    New contributor




    mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.







    $endgroup$














      0












      0








      0





      $begingroup$


      I have been playing with 2 dimensional machine learning using pandas (Trying to do something like this: https://github.com/freeman-lab/spark-ml-streaming), and I'd like to combine Lat/Long into a single numerical feature -- ideally in a linear fashion. Is there a "best practice" to do this?










      share|improve this question







      New contributor




      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.







      $endgroup$




      I have been playing with 2 dimensional machine learning using pandas (Trying to do something like this: https://github.com/freeman-lab/spark-ml-streaming), and I'd like to combine Lat/Long into a single numerical feature -- ideally in a linear fashion. Is there a "best practice" to do this?







      python pandas feature-engineering feature-construction






      share|improve this question







      New contributor




      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 34 mins ago









      mainstringargsmainstringargs

      101




      101




      New contributor




      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      mainstringargs is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          0






          active

          oldest

          votes












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );






          mainstringargs is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f49553%2fcombining-latitude-longitude-position-into-single-feature%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          mainstringargs is a new contributor. Be nice, and check out our Code of Conduct.









          draft saved

          draft discarded


















          mainstringargs is a new contributor. Be nice, and check out our Code of Conduct.












          mainstringargs is a new contributor. Be nice, and check out our Code of Conduct.











          mainstringargs is a new contributor. Be nice, and check out our Code of Conduct.














          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f49553%2fcombining-latitude-longitude-position-into-single-feature%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown