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

AttributeError: module 'databricks.koalas' has no attribute 'DateOffset' #2216

Open
prakharsandhu opened this issue Mar 18, 2022 · 1 comment

Comments

@prakharsandhu
Copy link

I am working on replacing Pandas library to Koalas Library in my python repo in VS Code. But Koalas module does not seem to have DateOffset() module similar to what pandas has.

I tried this :
import databricks.koalas as ks kdf["date_col_2"] = kdf["date_col_1"] - ks.DateOffset(months=cycle_info_gap)

It results in the below error :
AttributeError: module 'databricks.koalas' has no attribute 'DateOffset'

Is there any alternative for this in Koalas?

@HyukjinKwon
Copy link
Member

@prakharsandhu mind reporting the issue in Apache Spark https://issues.apache.org/jira/projects/SPARK/issues? this repo is in maintenance mode

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