Skip to content

Conversation

AhmedSarg
Copy link

@@ -0,0 +1,64 @@
import pytest
Copy link
Member

Choose a reason for hiding this comment

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

there is already a test_reductions.py file

numeric_only: bool = False,
**kwargs,
):
self.convert_date_na_columns()
Copy link
Member

Choose a reason for hiding this comment

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

don't modify the dataframe.

def is_date_or_null_column(self, column: Series) -> bool:
"""Check if a pandas Series contains only datetime.date objects or nulls."""
for value in column:
from datetime import date
Copy link
Member

Choose a reason for hiding this comment

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

imports at the top of the file

for value in column:
from datetime import date
if not (isna(value) or isinstance(value, date)):
return False
Copy link
Member

Choose a reason for hiding this comment

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

lib.is_date_array

@mroeschke
Copy link
Member

This PR is targeting the wrong branch. It should be main

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.

3 participants