Last active
September 28, 2020 19:47
-
-
Save alivx/39d1156ea15b60158b847accde10a360 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#Trim spaces | |
ali.rename(columns=lambda x: x.strip(), inplace=True) | |
#Fill merged cells with upper head | |
ali = mini.fillna(method='ffill', axis=0) | |
#Replace nan with zero | |
support['xx'] = support['xx'].replace(np.nan, 0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment