Skip to content

pd.Series.interpolate(method='spline') Error #10633

Closed
@JianxunLi

Description

@JianxunLi

Although in docs it says method='spline' is a choice, but it raises a ValueError.

import numpy as np
import pandas as pd

np.random.seed(1)
s = pd.Series(np.arange(10)**2)
s[np.random.randint(0,9,3)] = np.nan
s.interpolate(method='spline')

# raise ValueError
ValueError: invalid method 'spline' to interpolate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsError ReportingIncorrect or improved errors from pandas

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions