When does .str.count('\w') work and when doesn't it?
问题 This is a follow up question to Regex inside findall vs regex inside count .str.count('\w') works for me when called on the column of a dataframe, but not when called on a Series. X_train[0:7] is a Series: 872 I'll text you when I drop x off 831 Hi mate its RV did u hav a nice hol just a mes... 1273 network operator. The service is free. For T &... 3314 FREE MESSAGE Activate your 500 FREE Text Messa... 4929 Hi, the SEXYCHAT girls are waiting for you to ... 4249 How much for an eighth? 3640