Skip to content

Conversation

@zhangbowen-coder
Copy link
Contributor

replaced all Appender、Substitution、doc decorators in pandas/pandas/core/frame.py.

ref #62437

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only way I think this is mergable is if the CI can get to green and this produces nearly identical HTML output to what's on main.

I'll be willing to check once the CI gets to green, but I'd suggest smaller PRs to tackle this issue.

@rhshadrach
Copy link
Member

rhshadrach commented Dec 14, 2025

I took a look, the diff on just reference/api/pandas.DataFrame.*.html unfortunately generates thousands of lines of diff, and does not look reasonable to sift through.

@zhangbowen-coder
Copy link
Contributor Author

zhangbowen-coder commented Dec 14, 2025

I do just as the issue says, print the __doc__ variable and paste it in the code, but I changed some lines since the pre-commit program reports that some lines are too long, should this make the difference?

@zhangbowen-coder
Copy link
Contributor Author

zhangbowen-coder commented Dec 14, 2025

Or should the indents in the docstring cause the difference?Every line in the docstring is indented to be aligned with the code block, ortherwise the pre-commit program will do it automatically.

By the way, where can I find the files reference/api/pandas.DataFrame.*.html? I want to take them as reference.

Copy link
Member

@rhshadrach rhshadrach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Every PR must be reviewed to ensure it has been done correctly. The larger the PR, the more likely it is that errors will be introduced. I personally am not willing to review a 6k+ line PR unless it is in exceptional circumstances, perhaps another core member will.

By the way, where can I find the files reference/api/pandas.DataFrame.*.html? I want to take them as reference.

In the doc/build/html directory.

Comment on lines 1360 to 1364
>>> print(df.to_string())
col1 col2
col1 col2
0 1 4
1 2 5
2 3 6
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here is an example of an error being introduced in this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, I will break this PR into several smaller ones, but I will temperally reserve this one, once I make the new one, I want to remind you to review the new ones, is that OK?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants