<Kaggle>
-
2022-02-24<Kaggle>/[Costa Rican Household Poverty Level] 2022. 2. 24. 21:43
df['x'] == 1 # 결과는 boolean series df.groupby('x') # 'x'는 index로 .isin()(= ==+for) vs == households_no_head = df.loc[df['x'].isin(s[s == 0].index), :] # series.value.isin(index) for i in (s[s == 0].index): households_no_head = df.loc[df['x']==i, :] df['x'] == np.nan -> df.loc[df['x'].isnull()] Counter(x) -> dict
-
[Porto seguro-safe driver prediction] 2022-02-04 Interactive Porto Insights[version 2.02]<Kaggle> 2022. 2. 14. 16:42
!pip install plotly==3.8.1 # Let us load in the relevant Python modules import pandas as pd import numpy as np import seaborn as sns import matplotlib.pyplot as plt %matplotlib inline import plotly.offline as py py.init_notebook_mode(connected=True) import plotly.graph_objs as go import plotly.tools as tls import warnings from collections import Counter from sklearn.feature_selection import mutu..
-