โ07-24-2023 01:32 PM
Unable to access Python variables in-between shells in the same notebook even if the entire code is written in Python. Getting error that unable to identify variable in the new cell
โ07-26-2023 11:33 AM
Hi @sanjanag,
Thank you for posting the question in Databricks Community.
Can you share the minimal code for the repro?
Regards,
Kumaran
โ07-27-2023 01:00 PM
Even Just a simple code like
One cell : import pandas as pd
Second cell : df = pd.read_csv('path')
Error in second cell saying 'pd is not defined'
โ07-27-2023 01:29 PM - edited โ07-27-2023 01:30 PM
Hi @sanjanag,
Thank you for the response.
โ08-01-2023 11:50 AM
Hi, thanks for your message.
Can you sent a screenshot of your notebook maybe?
This makes it hard to debug what could be the cause of it?
Also which runtime are you using, this could might be the issue.
With my experience loading the pandas library should never be an issue in this way.
Kind regards,
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโt want to miss the chance to attend and share knowledge.
If there isnโt a group near you, start one and help create a community that brings people together.
Request a New Group