A big thanks goes out to Thomas Dexter who kindly pointed out a way to use wp_nav_menu, which adds the correct wp classes and allows us to use custom walkers and the like. Using his code and the hook provided by mac joost on Stack Overflow, I created a filter that works based ...
(int) # Quantize age into 5 classes df['Age_Group'] = pd.qcut(df['Age'],5, labels=False) df.drop(['Age'], axis=1, inplace=True) return df def prepare_fare(df): df['Fare'].fillna(0, inplace=True) df['Fare_Group'] = pd.qcut(df['Fare'],5,labels=False) df.drop(['...