예제 #1
0
	def __store_dataset_metadata(self, hndl_Data, hndl_Qndl, CSV_Metadata):
		hndl_Data.last_refreshed = dt_str_Y_M_D_Junk_to_epoch(hndl_Qndl.Quandl_Latest_Refresh) # Should make this take the time, not junk it.
		hndl_Data.periodicity = codify_periodicity(hndl_Qndl.Data_Periodicity) # Kind of silly to de-code into string and re-encode
		hndl_Data.original_periodicity = codify_periodicity(hndl_Qndl.Quandl_Periodicity)
		#
		hndl_Data.category = CSV_Metadata['category_1']
		hndl_Data.subcategory = CSV_Metadata['sub_category_1']
		hndl_Data.category_meaning = CSV_Metadata['category_1_meaning']
		hndl_Data.is_categorical = boolify(CSV_Metadata['IS_CATEGORICAL'])
		hndl_Data.geography = CSV_Metadata['geography']
		#
		hndl_Data.Quandl_dataset = hndl_Qndl.Quandl_Dataset
		hndl_Data.Quandl_database = hndl_Qndl.Quandl_Database
예제 #2
0
		def fget(self):
			return stringify_periodicity(
				max(	codify_periodicity(self.Instr_Collapse), 
						codify_periodicity(self.Quandl_Periodicity)
					)
				)