Dear Prof. Bierlaire,
I'm trying to install biogeme, but keep facing problems such like
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-19-4ae824465138> in <module>()
1 # Removing some observations
2 exclude = ((PURPOSE != 1) * (PURPOSE != 3) + (CHOICE == 0)) > 0
----> 3 database.remove(exclude)
C:\Anaconda3\lib\site-packages\biogeme\database.py in remove(self, expression)
740 self.data[self.data[columnName] != 0].index, inplace=True
741 )
--> 742 self.data.drop(columns=[columnName], inplace=True)
743
744 def dumpOnFile(self):
TypeError: drop() got an unexpected keyword argument 'columns'
I believe it's because I have the wrong version of pandas.
I looked up in the documents and the web, haven't found any information about which version of numpy/pandas/scipy the biogeme(3.2.8) depends on.
another question is that, I am looking at swissmetro data.
It seems that each respondent ID have 9 records and 3 options that is availabel.
So, for each question, he/she should be facing three scenarios.
But there is not a variable that indicates which 3 records belongs to each question.
How is that happen?
I'm just a beginner for biogeme (but not for choice modeling), exuse me if the question is too simple.
best regards.
Longxu from China