Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

The database contains an object error Biogeme

44 views
Skip to first unread message

Amparo Álvarez

unread,
Nov 6, 2024, 11:25:07 AM11/6/24
to Biogeme
I have a problem with the database. It gives me an error message saying that the database contains an object. 
object.jpg
I've tried to fix it with this but it didn't work.
results.jpg
It says I have object data but all my data is numeric.

Thanks in advance,
Amparo



Michel Bierlaire

unread,
Nov 6, 2024, 11:49:33 AM11/6/24
to amparoalva...@gmail.com, Michel Bierlaire, Biogeme
df['column_name'] = pd.to_numeric(df['column_name'])

> On 6 Nov 2024, at 17:18, Amparo Álvarez <amparoalva...@gmail.com> wrote:
>
> I have a problem with the database. It gives me an error message saying that the database contains an object.
> <object.jpg>I've tried to fix it with this but it didn't work.
> <results.jpg>It says I have object data but all my data is numeric.
>
> Thanks in advance,
> Amparo
>
>
>
>
> --
> You received this message because you are subscribed to the Google Groups "Biogeme" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to biogeme+u...@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/biogeme/932a6d6c-e1ba-4ec0-b042-099cdb5623c6n%40googlegroups.com.
> <object.jpg><results.jpg>

Michel Bierlaire
Transport and Mobility Laboratory
School of Architecture, Civil and Environmental Engineering
EPFL - Ecole Polytechnique Fédérale de Lausanne
http://transp-or.epfl.ch
http://people.epfl.ch/michel.bierlaire

Amparo Álvarez

unread,
Nov 9, 2024, 5:40:08 AM11/9/24
to Biogeme
After the code df['column_name'] = pd.to_numeric(df['column_name']) the database is now empty
vacio.jpg

Thanks in advance,
Amparo
Reply all
Reply to author
Forward
0 new messages