Skip to content
This repository has been archived by the owner on Oct 7, 2021. It is now read-only.

Commit

Permalink
Update, use numpy.
Browse files Browse the repository at this point in the history
  • Loading branch information
takkii committed Apr 19, 2021
1 parent b9db67d commit 0d94df3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rplugin/python3/deoplete/sources/totolot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import re
from operator import itemgetter

import pandas as pd
import numpy as np
from deoplete.source.base import Base


Expand Down Expand Up @@ -42,8 +42,7 @@ def gather_candidates(self, context):
index_ruby = list(ruby_method.readlines()) + list(rubymotion_method.readlines()) + list(
rurima_list.readlines())

Seri = pd.Series(index_ruby)
sort_ruby = Seri.sort_index()
sort_ruby = np.array(index_ruby).tolist()
data_ruby = list(map(lambda s: s.rstrip(), sort_ruby))
ruby_method.close()
rubymotion_method.close()
Expand Down

0 comments on commit 0d94df3

Please sign in to comment.