A temporal database represents a sparse and binary representation of items occurring at a particular timestamp in a dataframe. The steps to convert a dataframe into a temporal database is as follows:
from PAMI.extras.DF2DB import denseDF2DB as pro
import pandas as pd
# Objective: convert the above dataframe into a transactional database with items whose value is greater than or equal 1.
db = pro.denseDF2DB(inputDF=pd.DataFrame('mentionDataFrame'), thresholdValue=1, condition='>=')
# Convert and store the dataframe as a temporal database file
db.convert2TemporalDatabase(outputFile='/home/userName/temporalDB.txt')
# Getting the fileName of the temporal database
print('The output file is saved at ' + db.getFileName())