1 from predictops.engine import Engine
2 from predictops.learn.preprocessing import Preprocessing
4 from logging import getLogger
5 from logging.config import fileConfig
6 from pathlib import Path
9 fileConfig((Path.cwd() / 'config') / 'logging.cfg')
12 if __name__ == '__main__':
14 config = (Path.cwd() / 'config') / 'learn.cfg'
15 engine = Engine(config_file = config)
20 process = Preprocessing(config_file = config, dict_features = engine.X)
22 print(process.dataframe.head(n=20))
23 print(process.dataframe.tail(n=20))
25 '''target = toarea(stream_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')
27 depts = gpd.read_file( Path.cwd() / 'data' / 'targets' / 'departments' / "departements-20180101.shp")
28 Doubs = depts.loc[depts['nom'] == 'Doubs'].iloc[0]
30 ToArea(area=Doubs.geometry,
31 csv_file = Path.cwd() / 'data' / 'targets' / 'sdis25' / 'interventions.csv')