Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -9,15 +9,15 @@ from sklearn.feature_extraction.text import ENGLISH_STOP_WORDS
|
|
9 |
# Load the CSV file
|
10 |
df = pd.read_csv("anomalies.csv", quotechar='"')
|
11 |
|
|
|
|
|
|
|
12 |
# Convert 'real' column to standard float format and then to strings
|
13 |
df['real'] = df['real'].apply(lambda x: f"{x:.2f}")
|
14 |
|
15 |
# Fill NaN values and convert all columns to strings
|
16 |
df = df.fillna('').astype(str)
|
17 |
|
18 |
-
# Filter 'real' higher than 10 Million
|
19 |
-
df= df[df['real'] >= 1000000.]
|
20 |
-
|
21 |
print(df)
|
22 |
|
23 |
# Function to remove stopwords
|
|
|
9 |
# Load the CSV file
|
10 |
df = pd.read_csv("anomalies.csv", quotechar='"')
|
11 |
|
12 |
+
# Filter 'real' higher than 10 Million
|
13 |
+
df= df[df['real'] >= 1000000.]
|
14 |
+
|
15 |
# Convert 'real' column to standard float format and then to strings
|
16 |
df['real'] = df['real'].apply(lambda x: f"{x:.2f}")
|
17 |
|
18 |
# Fill NaN values and convert all columns to strings
|
19 |
df = df.fillna('').astype(str)
|
20 |
|
|
|
|
|
|
|
21 |
print(df)
|
22 |
|
23 |
# Function to remove stopwords
|