Skip to content

Commit b71e699

Browse files
committed
Fixup docstring
1 parent 793e85e commit b71e699

File tree

3 files changed

+26
-16
lines changed

3 files changed

+26
-16
lines changed

pandas/core/missing.py

+13-10
Original file line numberDiff line numberDiff line change
@@ -314,16 +314,19 @@ def get_interp_index(method, index: Index) -> Index:
314314
# prior default
315315
from pandas import Index
316316

317-
if isinstance(index.dtype, DatetimeTZDtype) or lib.is_np_dtype(
318-
index.dtype, "mM"
319-
):
320-
# Convert datetime-like indexes to int64
321-
index = Index(index.view("i8"))
322-
323-
elif not is_numeric_dtype(index.dtype):
324-
# We keep behavior consistent with prior versions of pandas for
325-
# non-numeric, non-datetime indexes
326-
index = Index(range(len(index)))
317+
index = Index(range(len(index)))
318+
319+
# if isinstance(index.dtype, DatetimeTZDtype) or lib.is_np_dtype(
320+
# index.dtype, "mM"
321+
# ):
322+
# # Convert datetime-like indexes to int64
323+
# index = Index(index.view("i8"))
324+
#
325+
# elif not is_numeric_dtype(index.dtype):
326+
# # We keep behavior consistent with prior versions of pandas for
327+
# # non-numeric, non-datetime indexes
328+
# index = Index(range(len(index)))
329+
327330
else:
328331
methods = {"index", "values", "nearest", "time"}
329332
is_numeric_or_datetime = (

pandas/io/pytables.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -377,18 +377,18 @@ def read_hdf(
377377
object
378378
The selected object. Return type depends on the object stored.
379379
380+
See Also
381+
--------
382+
DataFrame.to_hdf : Write a HDF file from a DataFrame.
383+
HDFStore : Low-level access to HDF files.
384+
380385
Notes
381386
-----
382387
When ``errors="surrogatepass"``, ``pd.options.future.infer_string`` is true,
383388
and PyArrow is installed, if a UTF-16 surrogate is encountered when decoding
384389
to UTF-8, the resulting dtype will be
385390
``pd.StringDtype(storage="python", na_value=np.nan)``.
386391
387-
See Also
388-
--------
389-
DataFrame.to_hdf : Write a HDF file from a DataFrame.
390-
HDFStore : Low-level access to HDF files.
391-
392392
Examples
393393
--------
394394
>>> df = pd.DataFrame([[1, 1.0, "a"]], columns=["x", "y", "z"]) # doctest: +SKIP

pandas/tests/resample/test_time_grouper.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,15 @@ def test_groupby_resample_interpolate_with_apply_syntax_off_grid(groupy_test_df)
412412
with resampling that results in missing anchor points when interpolating.
413413
See GH#21351."""
414414
# GH#21351
415+
print(groupy_test_df)
416+
417+
def foo(x):
418+
print(x)
419+
return x.resample("265h").interpolate(method="linear")
420+
415421
result = groupy_test_df.groupby("volume").apply(
416-
lambda x: x.resample("265h").interpolate(method="linear")
422+
# lambda x: x.resample("265h").interpolate(method="linear")
423+
foo
417424
)
418425

419426
volume = [50, 50, 60]

0 commit comments

Comments
 (0)