Home > other >  Python matplotlib when drawing if there are any missing value, how to make the two points before and
Python matplotlib when drawing if there are any missing value, how to make the two points before and

Time:10-27

Python matplotlib in the drawing, if there is a large number of missing values data column, if directly before and after the two existing data points directly connected, rather than "fill" or "delete missing value" in the axis,

The import numpy as np
The import matplotlib. Pyplot as PLT

Y=np. Array ([np. NAN, 45, 23, np, NAN, 5, 14, 22, np, NAN, np, NAN, 18 and 23, np, NAN])

CodePudding user response:

I feel or want to eliminate these don't points first
  • Related