shared/share_data_item_loader.py
def load_csv(self, selected_share, csv_frame):
        '''
        Loads end-of-day data related to the share from the csv to database
        '''
        for index, row in csv_frame.iterrows():
            date_value = row['timestamp'].date()
            data_share_item = ShareDataItem(
                share=selected_share,
                date=date_value,
                open_price=row['open'],
                high_price=row['high'],
                low_price=row['low'],
                close_price=row['close'],
                volume=row['volume']
            )
            data_share_item.save()

        Loads end-of-day data related to the share from the csv to database
        
Loads end-of-day data related to the share from the csv to database
Loads end - of - day data related to the share from the csv to database
def load_csv(self, selected_share, csv_frame):
        for index, row in csv_frame.iterrows():
            date_value = row['timestamp'].date()
            data_share_item = ShareDataItem(
                share=selected_share,
                date=date_value,
                open_price=row['open'],
                high_price=row['high'],
                low_price=row['low'],
                close_price=row['close'],
                volume=row['volume']
            )
            data_share_item.save()
def load_csv ( self , selected_share , csv_frame ) : for index , row in csv_frame . iterrows ( ) : date_value = row [ 'timestamp' ] . date ( ) data_share_item = ShareDataItem ( share = selected_share , date = date_value , open_price = row [ 'open' ] , high_price = row [ 'high' ] , low_price = row [ 'low' ] , close_price = row [ 'close' ] , volume = row [ 'volume' ] ) data_share_item . save ( )
Loads end-of-day data related to the share from the csv to database
Loads end - of - day data related to the share from the csv to database
'''
        Loads end-of-day data related to the share from the csv to database
        '''
self
selected_share
csv_frame