Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named 'databricks' after installing koalas #2235

Open
loungehub opened this issue Jul 5, 2024 · 1 comment
Open

No module named 'databricks' after installing koalas #2235

loungehub opened this issue Jul 5, 2024 · 1 comment

Comments

@loungehub
Copy link

I have installed koalas using conda install.
However when I try the following import, I get an ModuleNotFoundError.
Can you help me to solve this issue?

import databricks.koalas as ks
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'databricks'

@itholic
Copy link
Contributor

itholic commented Jul 5, 2024

Can you use Pandas API on Spark instead of Koalas as the Koalas was ported into PySpark and it is no longer maintained??

You can just simply install pyspark and change your import as below then your existing Koalas code just works:

# import databricks.koalas as ks
import pyspark.pandas as ks

(your existing Koalas code)

@itholic itholic mentioned this issue Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants