##### data science
 data science peepeepoopoo Unladen Swallow Posts: 1 Threads: 1 Joined: Sep 2019 Reputation: 0 Sep-21-2019, 03:56 PM I have a dataframe with billions of stars, and i would like to narrow it down using equations. I need to find which stars are moving at escape velocity from their galactic coordinates in order to find which objects will have a significant enough gravitational pull on the star to alter its course so it has to be moving at the proper 3 dimensional velocity. My friend is working on the galactic coordinates equation and i am new to python and need to plug the formula into the dataframe could somebody show how to put an equation in to python with multiple steps. The equation would be a basic 3d velocity equation which i would explain but the equation looks like this apparently but we do not have the end position. x y and z are different vectors like tangential velocity, radial velocity etc dx = endPosition.x - startPosition.x dy = endPosition.y - startPosition.y dz = endPosition.z - startPosition.z d = sqrt(dx*dx + dy*dy + dz*dz) vx = dx/d * missileSpeed vy = dy/d * missileSpeed vz = dz/d * missileSpeed Reply Larz60+ aetate et sapientia Posts: 9,616 Threads: 357 Joined: Sep 2016 Reputation: 416 Sep-21-2019, 10:34 PM something like this? https://matplotlib.org/mpl_toolkits/mplo...ver%20plot Reply

 Possibly Related Threads… Thread Author Replies Views Last Post Networkx / Data Science IamAlbert 0 150 Sep-11-2020, 05:33 PM Last Post: IamAlbert What good book in Data science ? bashar 0 369 Apr-14-2020, 03:29 AM Last Post: bashar WGET + Data Science + Python Programs BrandonKastning 0 288 Mar-29-2020, 06:43 PM Last Post: BrandonKastning Data science with Python - links with exercises darpInd 1 440 Mar-02-2020, 04:24 PM Last Post: Larz60+ Softwares to learn data science jk91 2 482 Feb-26-2020, 07:17 PM Last Post: jefsummers Data Science Project DaisyPJ 3 565 Jan-19-2020, 07:05 PM Last Post: jefsummers Nvidia or (25% better for the price) Radeon GPU for Python Data Science gheek 0 350 Dec-11-2019, 05:19 PM Last Post: gheek Python for Enterprise Data Science paripy 3 823 May-03-2019, 05:37 AM Last Post: directnirvana

Forum Jump:

### User Panel Messages

##### Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020