social-clusters/prepare_dataset/career.py

15 lines
503 B
Python
Raw Normal View History

2023-06-05 13:02:49 +04:00
from prepare_dataset.raw_data import RawData
class Career:
def __init__(self, raw_career):
data = RawData(raw_career)
self.id = data.get_int('id')
self.group_id = data.get_int('group_id')
self.company = data.get_str('company')
self.country_id = data.get_int('country_id')
self.city_id = data.get_int('city_id')
self.year_from = data.get_int('from')
self.until = data.get_int('until')
self.position = data.get_str('position')