How does DataFrame.interpolation() work (in its source code)?

Joined
Mar 26, 2022
Messages
1
Reaction score
0
I could not find the declarations of the single methods of DataFrame.interpolation()'s "method"-parameter, therefore:

How does pandas' DataFrame.interpolation() work in relation to the amount of rows it considers,
  • a) is it just the row before the NaNs and the row right after?
  • b) Or is it the whole DataFrame (how does that work at 1 million rows?)
  • c) other way (please explain).
feel free to share the link to the source-code, since https://github.com/pandas-dev/panda...9abf539867a8cd481/pandas/core/frame.py#L10916 didnt include the "method"'s declarations (for example "polynomial").
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,931
Messages
2,570,085
Members
46,536
Latest member
keelop

Latest Threads

Top