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
  ModuleNotFoundError: No module named 'tkcalendar', Thonny, Windows 10 Edward_ 4 767 Apr-06-2025, 07:56 PM
Last Post: Edward_
  personal module Azdaghost 3 737 Mar-30-2025, 08:40 PM
Last Post: deanhystad
  Merge htm files with shutil library (TypeError: 'module' object is not callable) Melcu54 7 3,389 Mar-09-2025, 04:25 PM
Last Post: Pedroski55
  Upgraded Python: Module no longer found - for Linux Curbie 8 1,482 Mar-05-2025, 06:01 PM
Last Post: Curbie
  Python Module for PowerLED 2.89.4 ChonkyBork 3 657 Feb-14-2025, 01:21 AM
Last Post: ChonkyBork
  No module named 'importlib.metadata' EdVS 3 1,026 Jan-30-2025, 09:55 AM
Last Post: Larz60+
  problem with memory_graph module akbarza 5 1,722 Jan-14-2025, 04:31 PM
Last Post: Gribouillis
Question [SOLVED] Upgraded Python: Module no longer found Winfried 1 1,112 Jan-01-2025, 02:43 PM
Last Post: Larz60+
  Python 3.13(Windows) does not have the latest module OS phillip_from_oz 1 828 Dec-13-2024, 04:35 AM
Last Post: deanhystad
  Help on tkinter module upendra 8 1,946 Nov-10-2024, 03:14 PM
Last Post: menator01

Forum Jump:

User Panel Messages

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