-
-
Save amankharwal/9fd28f6ee8765e86034c9de1961f47f1 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
def impute(column): | |
column = column[0] | |
if (type(column) != list): | |
return "".join(literal_eval(column)) | |
else: | |
return column | |
data["Tags"] = data[["Tags"]].apply(impute, axis=1) | |
data.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I run this script, it shows: IndentationError: unexpected indent