-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DOC: Fix docs for various offset constructors #52431
Comments
I can help with this @MarcoGorelli. Would it be correct to assume in most cases the definition to be added is similar to 1.0 ? I checked |
Hi @choudharynishu - not sure what you mean by similar to 1.0, but what needs doing for |
take |
The issue goes beyond
With respect to (2), if you look at https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.Index.html, you will see at the top: class pandas.Index(data=None, dtype=None, copy=False, name=None, tupleize_cols=True) If you look at any of the offsets, e.g. class pandas.tseries.offsets.BusinessDay I believe for class pandas.tseries.offsets.BusinessDay(n=1, normalize=False, offset=timedelta(0)) In fact, for So to close this issue, a complete review of all the offsets should be done, with changes made to reflect the correct constructor and the parameters. Here's a list (under details) that I created by doing some
|
is this issue open ?? I am a beginner contributor |
yup! you're both (@Snehaaa18 and @choudharynishu) welcome to work on this, there are a lot of offsets which need updating if you find an offset's docstring to work on, which has a parameter not documenting, and would like to work on it, perhaps comment here so we don't duplicate work |
Take |
Hey , I am totally new to open source contribution . Please someone help me in making contribution . My first question is . Where the files are stored in which I have to work on . Give me the exact location in this repo |
Two other people are working on this issue. To get started with contributing, see https://pandas.pydata.org/pandas-docs/stable/development/contributing.html |
I'd like to work on it. I will add parameters to offsets classes: |
I would like to work on Second, Hour and Day |
I would like to work on I will add missing parameters |
Hi! Can I work on this if the issue is still open? |
Yes, I will assign to you as well. See the comment at #52431 (comment) for the list of everything that needs to be checked. |
Hi it seem all of them get parameters except dateOffset which is a standard class and Frequencies I would like to contribute I didnt find frequencies in offset can i contribute to this or is there any other contribute in this issue :) |
Hi, I noticed that the Tick class is not yet updated, so I would like to work on it. |
hey there is the issue still open, i am a beginner contributor just need to know how to contribute to it, would be a great help |
Hey, is the issue still open, I am a beginner. I will be happy to contribute to it. thanks |
Hey as a beginner I'd like to contribute! |
@Abhinav00077 @enesyesil @shriyase we've had a lot of contributions to resolving this issue. What probably needs to be done at this point is to create a checklist from the list in this comment (open the "Details" at the bottom) #52431 (comment) as a new comment in this PR and indicate which of the classes have already had their docs fixed. Then we know which ones are left to do, and any of you can grab one of them to fix. |
I would like to work on this: CustomBusinessMonthEnd |
Hi! I'm a beginner contributor and would like to work on this as well. I see that there are 3 classes remaining from the checklist above. I would like to work on these 3: DateOffset |
take |
@Dr-Irv When using the offsets methods, Tick is not generally directly called upon. Instead the Tick object is initiated when we call its subclasses Hour, Minute, Second, Milli, etc. The Tick class is similar to the BaseOffset or the BusinessMixin classes that are not directly called upon but have subclasses through which they are initiated. In this case doesn't it make sense to not have a public documentation page for the Tick class?
Also regarding this issue, I noticed that the |
I'm not the one to make the decision here about whether we continue to document
Possibly. I'm not familiar with how the docs are built here - I just raised the issue! |
@Dr-Irv Got it. Thank you for clarifying! I'll update the Tick docstrings. |
Hello, is the issue still open. I am a beginner. I will be happy to contribute to it. how can I obtain a problem that can be solved? |
Also curious as to the status of this issue. @Siniade @NavaneetthaSundararaj |
Pandas version checks
main
hereLocation of the documentation
Multiple places (list is just a sample):
offset
parameterDocumentation problem
They are all missing a definition of the constructor, e.g.,
WeekOfMonth(n=..., normalize=..., week=..., weekday=...)
should be at the top for theWeekOfMonth
followed by a description of the parameters.Suggested fix for documentation
All of these should be checked to see if all the parameters are listed correctly. The way they are defined means that positional arguments will work, but maybe we don't want to support that. (If that's the case, that's a separate issue)
The constructors should appear at the top with their arguments, like is done for other classes.
The text was updated successfully, but these errors were encountered: