Skip to content

Conversation

@kumar10725
Copy link
Contributor

Convert Pandas Series to Numpy Array for faster numpy interpolation (np.interp) on larger dataset.

Fixes # .

Changes proposed in this pull request:

kumar10725 and others added 2 commits September 15, 2020 16:46
Convert Pandas Series to Numpy Array for faster numpy interpolation (np.interp) on larger dataset.
@uvchik uvchik requested a review from SabineHaas September 15, 2020 11:20
@uvchik uvchik self-assigned this Sep 15, 2020
@uvchik uvchik added this to the v0.2.1 milestone Sep 15, 2020
Copy link
Member

@uvchik uvchik left a comment

Choose a reason for hiding this comment

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

Thank you for your contribution. Looks good. Just some small issues.


if isinstance(wind_speed, pd.Series):
# save the indexes for later conversion to pd.Series
indexes = wind_speed.index
Copy link
Member

Choose a reason for hiding this comment

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

Why not wind_speed_index?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the mistakes and thank you for pointing out the suggestions. This does improves the readability of code.
Please check the new commit for changes.

Copy link
Member

@uvchik uvchik left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks again.

@uvchik uvchik requested review from a team and removed request for SabineHaas September 16, 2020 07:14
@uvchik uvchik merged commit 3b8deae into wind-python:dev Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants