HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

Python Tutorial: Exoplanet and Star Data Analysis

21,010 views November 13, 2018 15:00

Watch on YouTube
ChannelAnton Petrov

Description from the creator

Find the code files here: github.com/whatdamath/spaceengine

Hello and welcome to What Da Math!
In this video, we will talk about analysis exoplanet data with Python

Links:
exoplanetarchive.ipac.caltech.edu/
exoplanets.nasa.gov
seaborn.pydata.org/examples/horizontal_boxplot.…
Code:
%matplotlib inline
import numpy as np
import seaborn as sns
import matplotlib.pyplot as plt
import pandas as pd
planets = pd.read_csv("planets.csv", sep=',')
sns.set(style="ticks")
# Initialize the figure with a logarithmic x axis
f, ax = plt.subplots(figsize=(7, 6))
ax.set_xscale("log")
# Load the example planets dataset
#planets = sns.load_dataset("planets")
# replace pl_pnum and st_mass with other column names
sns.boxplot(x="pl_pnum", y="st_mass", data=planets)
# Add in points to show each observation
sns.swarmplot(x="pl_pnum", y="st_mass", data=planets,
size=2, color=".3", linewidth=0)
# Tweak the visual presentation
ax.xaxis.grid(True)
ax.set(ylabel="")
sns.despine(trim=True, left=True)

Support this channel on Patreon to help me make this a full time job:
patreon.com/whatdamath

Space Engine is available for free here: spaceengine.org
Enjoy and please subscribe.

Twitter: twitter.com/WhatDaMath
Facebook: facebook.com/whatdamath
Twitch: twitch.tv/whatdamath

Bitcoins to spare? Donate them here to help this channel grow!
1GFiTKxWyEjAjZv4vsNtWTUmL53HgXBuvu

About this tutorial

Anton Petrov published this 15:00 video tutorial on November 13, 2018. It has been watched 21,010 times on YouTube.

Category
Gaming
Duration
15:00
Published
November 13, 2018
Views
21,010
Likes
821

Tags

Share

This tutorial in other languages