add csv to Alina Chart
This commit is contained in:
1 parent
4ba8088373
commit
346aa2e8b6
1 file changed
+8
-22
@@ -67,32 +67,18 @@ def plot_percentiles(ax, x, data_dict, p_keys, colors=None, linewidths=None, lab
|
|||||||
return ax
|
return ax
|
||||||
|
|
||||||
# Build output path from ods_path
|
# Build output path from ods_path
|
||||||
ods_path = "/data/Nextcloud/Documents/Dokumente/Shared/Alina/Wachstum.ods"
|
ods_path = "/data/Nextcloud/Documents/Dokumente/Shared/Alina/WachstumsDatenWHO.ods"
|
||||||
|
csv_path = "/data/Nextcloud/Documents/Dokumente/Shared/Alina/WachstumAlina.csv"
|
||||||
output_dir = os.path.dirname(ods_path)
|
output_dir = os.path.dirname(ods_path)
|
||||||
output_path = os.path.join(output_dir, "Wachstum.png")
|
output_path = os.path.join(output_dir, "WachstumAlina.png")
|
||||||
|
|
||||||
# Load specific sheets into data structures (DataFrames)
|
# Load specific sheets into data structures (DataFrames)
|
||||||
alina_df = pd.read_excel(
|
alina_df = pd.read_csv(csv_path)
|
||||||
ods_path,
|
|
||||||
sheet_name="Alina",
|
who_weight_df = pd.read_excel(ods_path,sheet_name="WHO Gewicht",engine="odf")
|
||||||
engine="odf"
|
who_height_df = pd.read_excel(ods_path,sheet_name="WHO Größe",engine="odf")
|
||||||
)
|
who_head_df = pd.read_excel(ods_path,sheet_name="WHO Kopfumfang",engine="odf")
|
||||||
|
|
||||||
who_weight_df = pd.read_excel(
|
|
||||||
ods_path,
|
|
||||||
sheet_name="WHO Gewicht",
|
|
||||||
engine="odf"
|
|
||||||
)
|
|
||||||
who_height_df = pd.read_excel(
|
|
||||||
ods_path,
|
|
||||||
sheet_name="WHO Größe",
|
|
||||||
engine="odf"
|
|
||||||
)
|
|
||||||
who_head_df = pd.read_excel(
|
|
||||||
ods_path,
|
|
||||||
sheet_name="WHO Kopfumfang",
|
|
||||||
engine="odf"
|
|
||||||
)
|
|
||||||
def calculateDateFromBrithday(df, birthday ):
|
def calculateDateFromBrithday(df, birthday ):
|
||||||
|
|
||||||
new_df = pd.DataFrame(columns=["Datum"])
|
new_df = pd.DataFrame(columns=["Datum"])
|
||||||
|
|||||||
Reference in new issue
Block a user