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
  Most efficient way to roll through a pandas dataframe? sawtooth500 1 96 Jun-07-2024, 03:37 AM
Last Post: sawtooth500
  How can i get the top smallest and top highest value for each row in pandas? mahmoudr899 4 257 Jun-03-2024, 07:54 PM
Last Post: marythodge4
  Pandas Outer merge skollu826 2 335 Apr-20-2024, 06:28 PM
Last Post: deanhystad
  Cython, Pandas, and Chained Assignment sawtooth500 4 428 Apr-13-2024, 04:18 AM
Last Post: sawtooth500
  Using zipfile module - finding folders not files darter1010 2 464 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,827 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  using ctypes to use a dll in a python module dauriac 3 583 Mar-06-2024, 04:38 PM
Last Post: dauriac
  problem with memory_graph module akbarza 3 515 Mar-04-2024, 10:15 AM
Last Post: snippsat
  Installation module 'pyproj' QuentinR 1 522 Feb-28-2024, 10:00 AM
Last Post: snippsat
  importing variables from module 8376459 1 360 Feb-18-2024, 02:24 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

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