I am using JupyterHub on an EMR and Pandas is not installed on the PySpark or PySpark3 kernels. These kernels also disallow use of !
. I have tried to install using
import pip
pip.main(['install','pandas])
But this raises ValueError: I/O operation on closed file.
When I open the terminal kernel, pandas is already installed.
Please let me know if there are other ways to install to a specific kernel.