In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Python in Alteryx - outputting column values count with original column values

Kerria1276
5 - Atom

Hi, I am trying to output the results of a count on column values I am doing in the Python tool. I can print the results perfectly in the Jupyter notebook format, but when i try to output the same results I only get the count column, which is no use without the data the count is referring to. See my code below:

 

Any help greatly appreciated!

3 REPLIES 3
Felipe_Ribeir0
16 - Nebula

Hi @Kerria1276 

 

I had similar problems before with a column that was being used as an index for the dataframe if i remember well. I would try to reset index.

 

df = df.reset_index()

 

If this is not the case, i really dont know what could be.

Kerria1276
5 - Atom

Thanks I will try that and let you know

Kerria1276
5 - Atom

Thanks Felipe_Ribeir() that resolved it!

Labels
Top Solution Authors