apache / apache/beam

Handle inline pandas objects in pandas docstrings

Open
#21,013 0 comments 0 reactions 0 assignees View on GitHub
dataframe improvement P3
Dominant language
Java
Stars
8.7k
Forks
4.7k
Avg merge
1d 20h
Merged PRs (30d)
196

Description

Currently our doctest framework doesn't handle cases like
```

pd.DataFrame({'col': pd.Series(..)})

```

The pd.Series is replaced with a DeferredSeries and passed to `pd.DataFrame`. We should make it identify DeferredBase instances in the args and replace them with their original value.

Imported from Jira [BEAM-12530](https://issues.apache.org/jira/browse/BEAM-12530). Original Jira may contain additional context.
Reported by: bhulette.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.