tconst | ordering | nconst | category | job | Characters |
---|---|---|---|---|---|
tt0069049 | 10.0 | nm0613657 | editor | \N | \N |
tt0069049 | 1.0 | nm0001379 | actor | \N| | ["Jake Hannaford"] |
I have the above dataset in a csv file, I've loaded the dataset using pandas and I'm trying to replace the \N vals with math.nan (using the math and pandas libraries). Here is what I have.
cast_data = pd.read_csv("cast.csv")
cast_data.replace(cast_data.replace(r"^\N*$", math.nan, regex=True))
Here's the error I'm getting, can someone explain why? thanks.
raise source.error("missing {")
re.error: missing { at position 3