-
-
Save Sanlap1997/08cc91984b9998709137d5d754496809 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rul = pd.DataFrame(test_df.groupby('id')['cycle'].max()).reset_index() | |
rul.columns = ['id', 'max'] | |
truth_df.columns = ['more'] | |
truth_df['id'] = truth_df.index + 1 | |
truth_df['max'] = rul['max'] + truth_df['more'] | |
truth_df.drop('more', axis=1, inplace=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment