duplicate colum names

36 views
Skip to first unread message

Martin Wright

unread,
Nov 10, 2025, 8:13:27 AM (13 days ago) Nov 10
to Keras-users
This is a simple question, but I can't find the answer elsewhere.

I am passing a DataFrame into keras "model.fit()" with the following column names:

r1 r2 r3 r4 r4 r4 r4 r4 r4 r5 r6 r7 r8 r8 r9 r10 etc...

As you can see, some of the columns have the same same.

This is because the sample values for some columns are a list/array rather than a single value and I have then applied an explode function to flatten them out.

My question is simple - does this matter?

Or will duplicate column names distort the model weightings, implying I need to change the column names to make sure that each column name is unique?

Thanks ...

Pemphero Mkuka

unread,
Nov 10, 2025, 8:40:42 AM (13 days ago) Nov 10
to marti...@gmail.com, keras...@googlegroups.com

Yes it will matter if you don't change r4 will be treated as the same feature so the output will be distorted


--
You received this message because you are subscribed to the Google Groups "Keras-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to keras-users...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/keras-users/9c8345ad-8d2e-4dc3-b669-c4391b48f1efn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages