Skip to content
This repository has been archived by the owner on Jun 14, 2024. It is now read-only.

Commit

Permalink
cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAmoSfC committed Apr 19, 2022
1 parent 0254248 commit 780a514
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/pyodourcollect/ochelpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,10 @@
import os
import pandas as pd
from datetime import date
from tabulate import tabulate
import haversine as hs
import pathlib
import pyodourcollect.ocmodels as ocmodels

# import openpyxl

OC_ENDPOINT = 'https://odourcollect.eu/api/odor/list'

TYPE_LIST = {1: 'Waste|Fresh waste',
Expand Down Expand Up @@ -240,14 +237,6 @@ def build_df(json_response) -> pd.DataFrame:
df = df[['user', 'date', 'time', 'week_day', 'category', 'type', 'hedonic_tone_n', 'hedonic_tone_t', 'intensity_n',
'intensity_t', 'duration', 'latitude', 'longitude']]

"""
# Type casts should not be necessary with current approach
df['intensity'] = df['intensity'].apply(int)
df['hedonic tone'] = df['hedonic tone'].apply(int)
df['latitude'] = df['latitude'].apply(float)
df['longitude'] = df['longitude'].apply(float)
"""
# print(tabulate(df, headers='keys', tablefmt='fancy_grid'))
return df


Expand Down

0 comments on commit 780a514

Please sign in to comment.