We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9ec54ca commit 7916e76Copy full SHA for 7916e76
pandas/core/frame.py
@@ -4244,6 +4244,9 @@ def infer(x):
4244
if com.is_datetime64_dtype(x):
4245
x = lib.map_infer(x, lib.Timestamp)
4246
return lib.map_infer(x, func)
4247
+ #GH2786
4248
+ if not self.columns.is_unique:
4249
+ raise ValueError("applymap does not support dataframes having duplicate column labels")
4250
return self.apply(infer)
4251
4252
#----------------------------------------------------------------------
0 commit comments