Spaces:
Sleeping
Sleeping
Update app.py
#1
by
YOUSSEFBONO
- opened
app.py
CHANGED
@@ -26,7 +26,7 @@ st.set_page_config(page_title="Rapport FDV",
|
|
26 |
df = pd.read_excel(
|
27 |
io="suivi.xlsx",
|
28 |
engine="openpyxl",
|
29 |
-
sheet_name=["
|
30 |
#skiprows=8,
|
31 |
usecols="A:AC",
|
32 |
#nrows=163,
|
@@ -42,13 +42,13 @@ if uploaded_file is not None:
|
|
42 |
df = pd.read_excel(uploaded_file,
|
43 |
|
44 |
engine="openpyxl",
|
45 |
-
sheet_name=["
|
46 |
usecols="A:AC",
|
47 |
nrows=163,
|
48 |
|
49 |
)
|
50 |
|
51 |
-
quantitatif_df=df.get("
|
52 |
qualitatif_df=df.get("QUALI NV")
|
53 |
|
54 |
# st.write(bytes_data)
|
@@ -86,7 +86,7 @@ df_select_qualitatif = qualitatif_df.query(
|
|
86 |
|
87 |
if show_all_fdv:
|
88 |
df_selection_quantitatif = quantitatif_df.query(
|
89 |
-
"Famille==@famille & Vendeur!='
|
90 |
)
|
91 |
df_selection_quantitatif = df_selection_quantitatif.astype({
|
92 |
"REAL": "int",
|
|
|
26 |
df = pd.read_excel(
|
27 |
io="suivi.xlsx",
|
28 |
engine="openpyxl",
|
29 |
+
sheet_name=["TANGER","QUALI NV"],
|
30 |
#skiprows=8,
|
31 |
usecols="A:AC",
|
32 |
#nrows=163,
|
|
|
42 |
df = pd.read_excel(uploaded_file,
|
43 |
|
44 |
engine="openpyxl",
|
45 |
+
sheet_name=["TANGER","QUALI NV"],
|
46 |
usecols="A:AC",
|
47 |
nrows=163,
|
48 |
|
49 |
)
|
50 |
|
51 |
+
quantitatif_df=df.get("TANGER")
|
52 |
qualitatif_df=df.get("QUALI NV")
|
53 |
|
54 |
# st.write(bytes_data)
|
|
|
86 |
|
87 |
if show_all_fdv:
|
88 |
df_selection_quantitatif = quantitatif_df.query(
|
89 |
+
"Famille==@famille & Vendeur!='KHALIL HMER LEGHROUNE' & Vendeur!='CDZ TANGER GROS' &Vendeur!='BAALAKI YOUSSEF' & Vendeur!='CDZ AGADIR DET2'& Vendeur!='VIDE' ",
|
90 |
)
|
91 |
df_selection_quantitatif = df_selection_quantitatif.astype({
|
92 |
"REAL": "int",
|