make pass keyword arg to dataframe.drop
This commit is contained in:
parent
07b0dff9bc
commit
9345f9de94
@ -68,7 +68,7 @@ class clustering_job:
|
||||
def read_distance_mat(self, similarities, use_threads=True):
|
||||
print(similarities)
|
||||
df = pd.read_feather(similarities, use_threads=use_threads)
|
||||
mat = np.array(df.drop('_subreddit',1))
|
||||
mat = np.array(df.drop('_subreddit',axis=1))
|
||||
n = mat.shape[0]
|
||||
mat[range(n),range(n)] = 1
|
||||
return (df._subreddit,1-mat)
|
||||
|
Loading…
Reference in New Issue
Block a user