Add al files from local folder
This commit is contained in:
35
xmlconifg.py
Normal file
35
xmlconifg.py
Normal file
@@ -0,0 +1,35 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
"""
|
||||
Created on Sun Nov 13 19:33:47 2022
|
||||
|
||||
@author: Daniel Häfliger
|
||||
"""
|
||||
|
||||
import pandas as pd
|
||||
|
||||
def GetXmlConfig(xmlfile):
|
||||
|
||||
return
|
||||
|
||||
df = pd.read_xml('config.xml')
|
||||
print(df.loc[df['category']=='influx'].organisation[0])
|
||||
|
||||
print(df.loc[df['category']=='influx'].url[0])
|
||||
print(df.loc[df['category']=='influx'].bucket[0])
|
||||
print(df.loc[df['category']=='influx'].measurement[0])
|
||||
print(df.loc[df['category']=='influx'].Influxtoken[0])
|
||||
print(df.loc[df['category']=='influx'].Weatherapitoken[0])
|
||||
print(df.loc[df['category']=='influx'].place[0])
|
||||
print(df.loc[df['category']=='influx'].interval[0])
|
||||
print(df.loc[df['category']=='influx'].time[0])
|
||||
|
||||
|
||||
|
||||
a=df.loc[df['category']=='feature'].name
|
||||
print(df.loc[df['category']=='feature'].name[1])
|
||||
print(df.loc[df['category']=='pred'].name[2])
|
||||
|
||||
|
||||
|
||||
print(df.loc[df['category']=='pred'].name[2])
|
||||
|
||||
Reference in New Issue
Block a user