-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: Remove unnecessary read_csv usage during testing #55643
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
Conversation
pandas/tests/groupby/test_apply.py
Outdated
1.40649, | ||
], | ||
}, | ||
index=Index(pd.to_datetime(ts.split("\n")), name="date_time"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this any different from just making ts
a list to begin with?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Made this into a list
def asof(self, datapath): | ||
return self.read_data(datapath, "asof.csv") | ||
def asof(self): | ||
df = pd.DataFrame( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think since this is reused a few times in the module we should make it a fixture
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is already marked as a fixture (a few lines up)?
Looks like tests are passing so going to merge. Can follow up if needed |
No description provided.