<jupyter_start><jupyter_text>kics.info()<jupyter_code>kics2 = pd.read_csv("keplerperiods.csv")
kics2.info()
kics.head()
kics2.head()
df_keplers = pd.read_csv("keplers.csv")
df_keplers = df_keplers[['kepid','teff','logg','radius','mass','dens']]
df_periods = pd.DataFrame()
columns = ["KIC","Period"]
for kic in kics2.KIC:
    try:
        df = get_kepler.read_csv(kic)
        per = df["period"]
        df_periods = df_periods.append(pd.DataFrame(data=[[kic,per]],columns=columns))
    except Exception as e:
        print(e)
        df_periods = df_periods.append(pd.DataFrame(data=[[kic,0.0]],columns=columns))
df_periods = kics2.merge(df_keplers,left_on='KIC',right_on='kepid')
df_periods = df_periods.drop(columns=['kepid'])
df_periods.head()
df_periods.to_csv("keplerperiods_pdm.csv")
df_periods_2 = pd.read_csv("keplerperiods.csv")
df_periods_2.head()
df_valids = df_periods[(df_periods.Period > 0)&(df_periods.Period < 55)]
df_valids.info()
import seaborn as sns
import matplotlib.pyplot as plt
sns.set_palette(sns.cubehelix_palette(8, start=.5, rot=-.75))
plt.figure(1,dpi=500)
sns.pairplot(df_periods.drop(columns=["KIC"]))
sns.relplot(x='teff',y='Period', data=df_periods)
1 <= 2
import utils<jupyter_output><empty_output>
StarcoderdataJupyterStructuredCleanDedup