Resources
Answers
Examples
Sign in
Get Started
What do you want to save?
Add Code snippet
New code examples
Python
2022-01-22 20:16:26
pandas subtract integer from column
#Subtracting an integer '5' from column 'column_name' df.column_name.sub(5)
Add solution
Python
2022-01-22 04:31:18
multiply column of dataframe by number
#Multiply the values of column_name by 100 df.column_name.mul(100)
Add solution
TypeScript
2021-10-12 10:36:12
display entry count for specific column using value_counts spyder.
df.column_name.value_counts()
Add solution
Python
2021-09-15 00:04:03
changing data type in python
# convert data type of grade column # into integer df.column_name = df.column_name.astype(d_type) # show the dataframe print(df) # show the datatypes print(df.dtypes)
Add solution
Best helpers
daily
weekly
monthly
for 3 months
Michaeljt
+5
Nelson Menezes
+5
Andrei Petrenko
+5
Sudheesh
+5
Required
+5
Annedy
+5
Aesthetic_Bran
+5
F1234k
+5
Ann
+5
AndyP
+5
show more
This website uses cookies to make IQCode work for you. By using this site, you agree to our
cookie policy
Welcome Back!
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign in
E-mail
Password
Recover lost password
Log in
Or log in with
Not registered?
Sign up takes less than a minute
Create a Free Account
Sign up to unlock all of IQCode features:
Test your skills and track progress
Engage in comprehensive interactive courses
Commit to daily skill-enhancing challenges
Solve practical, real-world issues
Share your insights and learnings
Sign up
Email
Password
Sign up for free
Or sign up with
By signing up, you agree to the
Terms and Conditions
and
Privacy Policy
. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.