I'm new to PySAL and trying to run Knox test to find space-time correlation in my dataset. My original dataset is in the form of csv including attributes such latitude, longitude, date and other related features. I converted the csv file into shapefile (point-type shapefile) using QGIS. I stored the .shp, .dbf and .shx in a folder in pysal/examples directory.
I'm trying to run these lines of code:
import numpy as np import pysal import pysal.spatial_dynamics.interaction as interaction np.random.seed(100) path = "...pysal/examples/Shapefile/trial.shp" events = interaction.SpaceTimeEvents(path, 'Date', infer_timestamp = True)
I'm facing the following error even though the trial.dbf file is present in the same folder:
KeyError: 'trial.dbf not found in PySAL built-in examples.'
Can anyone guide me as to what I'm doing wrong here?
What is the solution for this error?