CCU0UU
New Coder
I'm a beginner and I'm learning Python by myself.
My current code:
pd.DataFrame(cigarettedata['state'].value_counts())
pd.DataFrame(cigarettedata['price'].value_counts())
Does the price of cigarettes vary by from state to state, what state is best for buying?
How should I write the code for this question? Thank you.
My current code:
pd.DataFrame(cigarettedata['state'].value_counts())
pd.DataFrame(cigarettedata['price'].value_counts())
Does the price of cigarettes vary by from state to state, what state is best for buying?
How should I write the code for this question? Thank you.