npm install -S spotify-web-api-js --save
Uncaught TypeError: Failed to resolve module specifier "spotify-web-api-js". Relative references must start with either "/", "./", or "../".
Uncaught:
SyntaxError: Cannot use import statement inside the Node.js REPL, alternatively use dynamic import
.js
в конце то работает, как сделать чтобы работало без указания .js
в конце? (в другом проекте работает без указания) def mostFrequentWord(words):
# Taking empty list
lis = []
for i in words:
# Getting all words
for j in i.split():
lis.append(j)
# Calculating frequency of all words
freq = Counter(lis)
# find max count and print that key
max = 0
for i in freq:
if (freq[i] > max):
max = freq[i]
word = i
return word, max
df['source'] = df['source'].apply(lambda row: mostFrequentWord(words)[0] in row)
print(df['source']==True)