-
Notifications
You must be signed in to change notification settings - Fork 674
Renaming modin.dataframe to modin.pandas #18
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
Merged
kunalgosar
merged 3 commits into
modin-project:master
from
devin-petersohn:reorganize_pandas
Jul 5, 2018
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -65,22 +65,22 @@ def __init__(self, data=None, index=None, columns=None, dtype=None, | |
| Dict can contain Series, arrays, constants, or list-like | ||
| objects. | ||
| index (pandas.Index, list, ObjectID): The row index for this | ||
| dataframe. | ||
| columns (pandas.Index): The column names for this dataframe, in | ||
| DataFrame. | ||
| columns (pandas.Index): The column names for this pandas, in | ||
| pandas Index object. | ||
| dtype: Data type to force. Only a single dtype is allowed. | ||
| If None, infer | ||
| copy (boolean): Copy data from inputs. | ||
| Only affects DataFrame / 2d ndarray input | ||
| col_partitions ([ObjectID]): The list of ObjectIDs that contain | ||
| the column dataframe partitions. | ||
| the column DataFrame partitions. | ||
| row_partitions ([ObjectID]): The list of ObjectIDs that contain the | ||
| row dataframe partitions. | ||
| row DataFrame partitions. | ||
| block_partitions: A 2D numpy array of block partitions. | ||
| row_metadata (_IndexMetadata): | ||
| Metadata for the new dataframe's rows | ||
| Metadata for the new DataFrame's rows | ||
| col_metadata (_IndexMetadata): | ||
| Metadata for the new dataframe's columns | ||
| Metadata for the new DataFrame's columns | ||
| """ | ||
| if isinstance(data, DataFrame): | ||
| self._frame_data = data._frame_data | ||
|
|
@@ -2001,7 +2001,7 @@ def filter(self, items=None, like=None, regex=None, axis=None): | |
| axis: axis to filter on | ||
|
|
||
| Returns: | ||
| A new dataframe with the filter applied. | ||
| A new DataFrame with the filter applied. | ||
| """ | ||
| nkw = com._count_not_none(items, like, regex) | ||
| if nkw > 1: | ||
|
|
@@ -2159,13 +2159,13 @@ def gt(self, other, axis='columns', level=None): | |
| return self._operator_helper(pandas.DataFrame.gt, other, axis, level) | ||
|
|
||
| def head(self, n=5): | ||
| """Get the first n rows of the dataframe. | ||
| """Get the first n rows of the DataFrame. | ||
|
|
||
| Args: | ||
| n (int): The number of rows to return. | ||
|
|
||
| Returns: | ||
| A new dataframe with the first n rows of the dataframe. | ||
| A new DataFrame with the first n rows of the DataFrame. | ||
| """ | ||
| if n >= len(self._row_metadata): | ||
| return self.copy() | ||
|
|
@@ -2254,7 +2254,7 @@ def info_helper(df): | |
| lines = result.split('\n') | ||
|
|
||
| # Class denoted in info() output | ||
| class_string = '<class \'modin.dataframe.dataframe.DataFrame\'>\n' | ||
| class_string = '<class \'modin.pandas.dataframe.DataFrame\'>\n' | ||
|
|
||
| # Create the Index info() string by parsing self.index | ||
| index_string = self.index.summary() + '\n' | ||
|
|
@@ -3492,7 +3492,7 @@ def reset_index(self, level=None, drop=False, inplace=False, col_level=0, | |
| Args: | ||
| level: Only remove the given levels from the index. Removes all | ||
| levels by default | ||
| drop: Do not try to insert index into dataframe columns. This | ||
| drop: Do not try to insert index into DataFrame columns. This | ||
| resets the index to the default integer index. | ||
| inplace: Modify the DataFrame in place (do not create a new object) | ||
| col_level : If the columns have multiple levels, determines which | ||
|
|
@@ -4244,13 +4244,13 @@ def swaplevel(self, i=-2, j=-1, axis=0): | |
| "github.com/ray-project/ray.") | ||
|
|
||
| def tail(self, n=5): | ||
| """Get the last n rows of the dataframe. | ||
| """Get the last n rows of the DataFrame. | ||
|
|
||
| Args: | ||
| n (int): The number of rows to return. | ||
|
|
||
| Returns: | ||
| A new dataframe with the last n rows of this dataframe. | ||
| A new pandas with the last n rows of this DataFrame. | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
||
| """ | ||
| if n >= len(self._row_metadata): | ||
| return self | ||
|
|
@@ -4873,10 +4873,10 @@ def __setitem__(self, key, value): | |
| self.insert(loc=loc, column=key, value=value) | ||
|
|
||
| def __len__(self): | ||
| """Gets the length of the dataframe. | ||
| """Gets the length of the DataFrame. | ||
|
|
||
| Returns: | ||
| Returns an integer length of the dataframe object. | ||
| Returns an integer length of the DataFrame object. | ||
| """ | ||
| return len(self._row_metadata) | ||
|
|
||
|
|
@@ -4899,7 +4899,7 @@ def __iter__(self): | |
| """Iterate over the columns | ||
|
|
||
| Returns: | ||
| An Iterator over the columns of the dataframe. | ||
| An Iterator over the columns of the DataFrame. | ||
| """ | ||
| return iter(self.columns) | ||
|
|
||
|
|
@@ -5260,7 +5260,7 @@ def _copartition(self, other, new_index): | |
| return zip(new_partitions_self, new_partitions_other) | ||
|
|
||
| def _operator_helper(self, func, other, axis, level, *args): | ||
| """Helper method for inter-dataframe and scalar operations""" | ||
| """Helper method for inter-DataFrame and scalar operations""" | ||
| if isinstance(other, DataFrame): | ||
| return self._inter_df_op_helper( | ||
| lambda x, y: func(x, y, axis, level, *args), | ||
|
|
||
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not sure what happened here