Value_counts() not working in Kaggle notebook but works in Jupyter notebook? - pandas

I'm transferring my exploratory data analysis from jupyter notebook (localhost) to kaggle notebook and I keep getting an error about how AttributeError: 'DataFrameGroupBy' object has no attribute 'value_counts' even tho the same line of code works in the jupyter notebook.
Here's how it looks on my local jupyter notebook:
jupyter notebook local
But When I try to do the same on Kaggle notebook, here's what happens:
kaggle notebook
Same code but one works the other doesn't.

Related

Unable to connect colab with my local computer

When i am running this code in jupyter notebook , it is giving me syntax error. I want to connect colab with my local runtime
I want to connect colab with my local runtime(system)
jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8888
--NotebookApp.port_retries=0

Why is Jupyter Note using '/' symbol?

Running Jupyter notebook from Anaconda
I've used Jupyter notebook before, but it was the actual app not through Anaconda. Why is the '/' symbol showing? And how can I prevent it from showing? Is this a version issue?
I loaded an old project I was working. And this is how it looked before I re-ran it. Once I ran it, it looked like the previous screenshot. Jupyter Notebook with Pandas Module when ran on actual Jupyter notebook

colab restart inn between cnn training

my colab restart after showing memory error.
I am trying to train cnn model on google colab notebook but after fist epoch my notebook restart itself by showing the error of memory allocation issue.
I was running the same one day before and it was running fine.
Logs are attached here.
It sounds like you might be running out of memory in google Colab.
One way to get around this might be to use your own computer. The method for this with anaconda is:
open anaconda
type in to anaconda: pip install jupyter
Once it is downloaded, type: jupyter notebook
this then opens a webpage, in the webpage there is a dropdown (I think called new) which you should click on, then click on terminal
in the terminal, you should type in (all on one line): jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com' --port=8889 --NotebookApp.port_retries=0
There will then be 3 output links, copy the second one.
back in colab, click the dropdown in the top right next to connect, then click connect to local runtime
Then input the copied URL into the prompt, then connect.

Setting a Kaggle environment with GPU

I'm new to Kaggle Notebooks I've been working with Google colab when I want access to cloud GPU/TPU I've been trying to set a notebook with GPU In Kaggle but I don't see any settings for GPU environment.
This is my new notebook.
Can someone show me how I can set a notebook with GPU on Kaggle kennels.

Tensorflow installation on JUPYTER NOTEBOOK

If I download Tensorflow package for windows x64 externally without using pip installer on JUPYTER NOTEBOOK,
then HOW should I install it on JUPYTER NOTEBOOK ????
Please help..
if it lies in your base environment then it would work in jupyter notebook. otherwise you could try it to put in any specific environment and after activating it will work