HyukjinKwon commented on a change in pull request #27109: 
[SPARK-30434][PYTHON][SQL] Move pandas related functionalities into 'pandas' 
sub-package
URL: https://github.com/apache/spark/pull/27109#discussion_r363602104
 
 

 ##########
 File path: python/pyspark/sql/utils.py
 ##########
 @@ -14,6 +14,8 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 #
+# To disallow implicit relative import. Remove this once we drop Python 2.
+from __future__ import absolute_import
 
 Review comment:
   We need this. Otherwise, `import pandas` imports `pyspark/sql/pandas` if 
`pandas` is not installed. This is forbidden from Python 3.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to