i am learning how to do data science and was following the kaggle tutorial for titanic.
However,
women_only_stats = data[ \ #Which element
(data[0::,4] == "female") \ #is a female
&(data[0::,2].astype(np.float) \ #and was ith class
== i+1) \
&(data[0:,9].astype(np.float) \#was greater
>= j*fare_bracket_size) \#than this bin
&(data[0:,9].astype(np.float) \#and less than
< (j+1)*fare_bracket_size)\#the next bin
, 1] #in the 2nd col
I got this error on the first line of (data[0::,4] == "female")
Error:
SyntaxError: unexpected character after line continuation character