Python Forum
How to calculate column mean and row skip non numeric and na
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to calculate column mean and row skip non numeric and na
#2
pd.to_numeric(df['s2'], errors='coerce').mean()
Reply


Messages In This Thread
RE: How to calculate column mean and row skip non numeric and na - by anbu23 - May-03-2020, 12:38 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Numeric Enigma Machine idev 9 3,296 Mar-29-2024, 06:15 PM
Last Post: idev
Question Numeric Anagrams - Count Occurances monty024 2 2,374 Nov-13-2021, 05:05 PM
Last Post: monty024
  How to get datetime from numeric format field klllmmm 3 2,886 Nov-06-2021, 03:26 PM
Last Post: snippsat
  need to skip password prompt, continue... tester_V 2 2,234 Oct-19-2021, 05:49 PM
Last Post: tester_V
  seeking simple|clean|pythonic way to capture {1,} numeric clusters NetPCDoc 6 4,690 Jun-10-2021, 05:14 PM
Last Post: NetPCDoc
  Delimiters - How to skip some html tags from being translate Melcu54 0 2,238 May-26-2021, 06:21 AM
Last Post: Melcu54
  How to skip to a different line while importing a different script kat_gamer 2 3,324 Feb-03-2021, 04:10 AM
Last Post: deanhystad
  Calculate column with cumulative return tgottsc1 1 2,576 Jan-25-2021, 12:52 PM
Last Post: buran
  Extract continuous numeric characters from a string in Python Robotguy 2 3,904 Jan-16-2021, 12:44 AM
Last Post: snippsat
  How to skip a folder directory in a loop mfkzolo 2 17,998 Nov-18-2020, 07:56 AM
Last Post: mfkzolo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020