10000 CLN: Assorted cleanups by jbrockmendel · Pull Request #30260 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

CLN: Assorted cleanups #30260

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
merged 23 commits into from
Dec 15, 2019
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
24e2ddd
CLN: pytables annotations and docstrings
jbrockmendel Dec 2, 2019
b16b4cc
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 2, 2019
ec7ddc5
sig cleanup
jbrockmendel Dec 2, 2019
f6d32d2
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 3, 2019
c4d90a2
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 3, 2019
3002f1f
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 3, 2019
069e966
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 4, 2019
ec6125a
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 5, 2019
a9b52ae
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 5, 2019
45b7ac3
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 5, 2019
9801a75
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 6, 2019
0a64173
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 6, 2019
1e11396
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 6, 2019
e40f054
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 6, 2019
009c893
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 12, 2019
17fa54b
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 12, 2019
74f31f2
CLN: assorted cleanups
jbrockmendel Dec 12, 2019
6ca4461
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 12, 2019
80d32e1
requested paramertization from #30222
jbrockmendel Dec 12, 2019
8000
41a3f1a
docstrings
jbrockmendel Dec 13, 2019
554cb0d
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 13, 2019
560a6ef
Merge branch 'master' of https://github.com/pandas-dev/pandas into cl…
jbrockmendel Dec 13, 2019
c6cd691
typo fixup
jbrockmendel Dec 13, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
sig cleanup
  • Loading branch information
jbrockmendel committed Dec 2, 2019
commit ec7ddc526f8dc72be2a1c29d0edb107c94479898
10 changes: 5 additions & 5 deletions pandas/io/pytables.py
Original file line number Diff line number Diff line change
Expand Up @@ -2253,8 +2253,8 @@ def set_atom(
min_itemsize,
nan_rep,
info,
encoding=None,
errors="strict",
encoding: str,
errors: str = "strict",
):
""" create and setup my atom from the block b """

Expand Down Expand Up @@ -2309,7 +2309,7 @@ def get_atom_string(self, block, itemsize):
return _tables().StringCol(itemsize=itemsize, shape=block.shape[0])

def set_atom_string(
self, block, block_items, existing_col, min_itemsize, nan_rep, encoding, errors
self, block, block_items, existing_col, min_itemsize, nan_rep, encoding: str, errors: str
):
# fill nan items with myself, don't disturb the blocks by
# trying to downcast
Expand Down Expand Up @@ -4510,7 +4510,7 @@ def read(
columns=None,
start: Optional[int] = None,
stop: Optional[int] = None,
):
) -> Series:

is_multi_index = self.is_multi_index
if columns is not None and is_multi_index:
Expand Down Expand Up @@ -4638,7 +4638,7 @@ def read(
return df


def _reindex_axis(obj, axis: int, labels: Index, other=None):
def _reindex_axis(obj: DataFrame, axis: int, labels: Index, other=None) -> DataFrame:
ax = obj._get_axis(axis)
labels = ensure_index(labels)

Expand Down
0