I'm working on analyzing a dataset of job postings from Indeed. My issue is filtering the job description and grabbing skills that contain special characters. For example, I am unable to get 'c#' into a plot with this code:
def cleanData(desc):
desc = word_tokenize(desc)
desc = [word.lower() for word in desc]
desc = [word for word in desc if word not in stop_words]
return desc
stop_words = stopwords.words('english')
tags_df = df["Description"].apply(cleanData)
result = tags_df.apply(Counter).sum().items()
result = sorted(result, key=lambda kv: kv[1],reverse=True)
result_series = pd.Series({k: v for k, v in result})
skills = ["java", "c#", "c++", "javascript", "sql", "python", "php", "html", "css"]
filter_series = result_series.filter(items=skills)
filter_series.plot(kind='bar',figsize=(20,5))
However, I can still grab words such as 'c++', 'asp.net', and 'react.js'. Any and all help is appreciated.