[ https://issues.apache.org/jira/browse/SPARK-38004?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17600496#comment-17600496 ]
Kyle Kent commented on SPARK-38004: ----------------------------------- [~itholic] I can create a PR for this. Should the change fit here in this function? https://github.com/apache/spark/blob/f9409ce7d49c25718317298031c84d1c8d6317af/python/pyspark/pandas/namespace.py#:~:text=internally.-,mangle_dupe_cols%20%3A%20bool%2C%20default%20True,are%20duplicate%20names%20in%20the%20columns.,-**kwds%20%3A%20optional I'm thinking of adding it as a note after the mangle_dup_col parameter. > read_excel's parameter - mangle_dupe_cols is used to handle duplicate columns > but fails if the duplicate columns are case sensitive. > ------------------------------------------------------------------------------------------------------------------------------------ > > Key: SPARK-38004 > URL: https://issues.apache.org/jira/browse/SPARK-38004 > Project: Spark > Issue Type: Documentation > Components: PySpark > Affects Versions: 3.2.0 > Reporter: Saikrishna Pujari > Priority: Minor > > mangle_dupe_cols - default is True > So ideally it should have handled duplicate columns, but in case the columns > are case sensitive it fails as below. > AnalysisException: Reference '{{{}Sheet.col{}}}' is ambiguous, could be > Sheet.col, Sheet.col. > Where two columns are Col and cOL > In the best practices, there is a mention of not to use case sensitive > columns - > [https://koalas.readthedocs.io/en/latest/user_guide/best_practices.html#do-not-use-duplicated-column-names] > Either the docs for read_excel/mangle_dupe_cols have to be updated about this > or it has to be handled. -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org For additional commands, e-mail: issues-h...@spark.apache.org