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
  Using moviepy fails due to "ModuleNotFoundError: No module named 'pip._internal.utils sheepog 2 257 Yesterday, 06:57 PM
Last Post: sheepog
  ModuleNotFoundError: No module named 'eyed3' Wimpy_Wellington 3 3,753 May-10-2025, 05:56 PM
Last Post: Wimpy_Wellington
Photo Converting Pandas DataFrame to a table of hourly blocks Abedin 1 763 Apr-24-2025, 01:05 PM
Last Post: snippsat
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 1,354 Apr-06-2025, 07:56 PM
Last Post: Edward_
  personal module Azdaghost 3 1,025 Mar-30-2025, 08:40 PM
Last Post: deanhystad
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 7 3,726 Mar-09-2025, 04:25 PM
Last Post: Pedroski55
  Upgraded Python: Module no longer found - for Linux Curbie 8 1,938 Mar-05-2025, 06:01 PM
Last Post: Curbie
  Python Module for PowerLED 2.89.4 ChonkyBork 3 862 Feb-14-2025, 01:21 AM
Last Post: ChonkyBork
  No module named 'importlib.metadata' EdVS 3 1,340 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  problem with memory_graph module akbarza 5 1,975 Jan-14-2025, 04:31 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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