Python Forum
can not import anaconda pandas module. PySpark pandas module is imported!!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
can not import anaconda pandas module. PySpark pandas module is imported!!
#1
My visual Studio Code is integrated with apache spark module. So pyspark module is imported with python codes. But I try to import anaconda pandas and it brings the error

Error:
File "/home/joseph/VSCode_Workspace/deep-learn-python/com/aaa/dl/mysql_feat.py", line 5, in <module> import pandas as pd File "/home/joseph/spark/python/pyspark/pandas/__init__.py", line 29, in <module> from pyspark.pandas.missing.general_functions import MissingPandasLikeGeneralFunctions File "/home/joseph/spark/python/pyspark/pandas/__init__.py", line 34, in <module> require_minimum_pandas_version() File "/home/joseph/spark/python/pyspark/sql/pandas/utils.py", line 37, in require_minimum_pandas_version if LooseVersion(pandas.__version__) < LooseVersion(minimum_pandas_version): AttributeError: partially initialized module 'pandas' has no attribute '__version__' (most likely due to a circular import)
In the error message, the imported pandas module is pyspark.pandas because the default pandas is pyspark.pandas. Kindly inform me how to import anaconda pandas module.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pandas Outer merge skollu826 2 194 Apr-20-2024, 06:28 PM
Last Post: deanhystad
  Cython, Pandas, and Chained Assignment sawtooth500 4 262 Apr-13-2024, 04:18 AM
Last Post: sawtooth500
  Using zipfile module - finding folders not files darter1010 2 284 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,344 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  using ctypes to use a dll in a python module dauriac 3 395 Mar-06-2024, 04:38 PM
Last Post: dauriac
  problem with memory_graph module akbarza 3 389 Mar-04-2024, 10:15 AM
Last Post: snippsat
  Installation module 'pyproj' QuentinR 1 339 Feb-28-2024, 10:00 AM
Last Post: snippsat
  importing variables from module 8376459 1 289 Feb-18-2024, 02:24 PM
Last Post: deanhystad
  how to pass a mongdb command to a module and execute it. cspower 0 322 Feb-03-2024, 09:54 PM
Last Post: cspower
  datetime module question jacksfrustration 10 1,771 Jan-12-2024, 04:54 AM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020