V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
lmw0320
V2EX  ›  问与答

关于 Python 中的缺失值填充疑问

  •  
  •   lmw0320 · Apr 26, 2019 · 1412 views
    This topic created in 2561 days ago, the information mentioned may be changed or developed.
    手头有一组数据,是时间序列。。其中部分数据缺失(首尾几行缺失,中间也有少量缺失)
    考虑到数据与时间的相关性,不能随便打乱顺序来填充数据。
    因此,我个人先用 pandas 的 interpolate 方法来填充,结果发现只有中间部分的缺失值被填充。。然后再用 fillna 方法填充,结果仍旧无法填充首尾几行的缺失值。。请教下,这个问题该怎么解决~~
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2756 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 13:09 · PVG 21:09 · LAX 06:09 · JFK 09:09
    ♥ Do have faith in what you're doing.