rameshmoorthy
commited on
Commit
•
ed26c35
1
Parent(s):
4afd377
Update functions.py
Browse files- functions.py +0 -18
functions.py
CHANGED
@@ -17,24 +17,6 @@ def process_file_bm25(file,mode,min_cluster_size,top_n_words,ngram):
|
|
17 |
|
18 |
|
19 |
|
20 |
-
# Run the shell command and capture its output
|
21 |
-
x = subprocess.check_output(["pip", "show", "scipy"])
|
22 |
-
|
23 |
-
# Decode the byte string output to a regular string
|
24 |
-
x = x.decode("utf-8")
|
25 |
-
# Run the shell command and capture its output
|
26 |
-
y = subprocess.check_output(["pip", "show", "numpy"])
|
27 |
-
|
28 |
-
# Decode the byte string output to a regular string
|
29 |
-
y = y.decode("utf-8")
|
30 |
-
# Run the shell command and capture its output
|
31 |
-
z = subprocess.check_output(["pip", "show", "plotly"])
|
32 |
-
|
33 |
-
# Decode the byte string output to a regular string
|
34 |
-
z = z.decode("utf-8")
|
35 |
-
# Print the output
|
36 |
-
|
37 |
-
print(x,y,z)
|
38 |
if file.name.endswith('.csv'):
|
39 |
df = pd.read_csv(file)
|
40 |
elif file.name.endswith('.xls') or file.name.endswith('.xlsx'):
|
|
|
17 |
|
18 |
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
if file.name.endswith('.csv'):
|
21 |
df = pd.read_csv(file)
|
22 |
elif file.name.endswith('.xls') or file.name.endswith('.xlsx'):
|