Skip to content

Commit

Permalink
avoid long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebacker committed Mar 23, 2024
1 parent 2e33d25 commit 2425297
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
8 changes: 6 additions & 2 deletions microdf/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,9 @@ def equals(self, other) -> bool:

@get_args_as_micro_series()
def groupby(self, by: Union[str, list], *args, **kwargs):
"""Returns a GroupBy object with MicroSeriesGroupBy objects for each column
"""
Returns a GroupBy object with MicroSeriesGroupBy objects for
each column
:param by: column to group by
:type by: Union[str, list]
Expand Down Expand Up @@ -766,7 +768,9 @@ def poverty_count(
income: Union[MicroSeries, str],
threshold: Union[MicroSeries, str],
) -> int:
"""Calculates the number of entities with income below a poverty threshold.
"""
Calculates the number of entities with income below a poverty
threshold.
:param income: income array or column name
:type income: Union[MicroSeries, str]
Expand Down
7 changes: 6 additions & 1 deletion microdf/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
import requests
import pandas as pd

HEADER = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36'}
HEADER = {
"User-Agent":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_5) " +
"AppleWebKit/537.36 (KHTML, like Gecko) " +
"Chrome/50.0.2661.102 Safari/537.36"
}


def read_stata_zip(url: str, **kwargs) -> pd.DataFrame:
Expand Down

0 comments on commit 2425297

Please sign in to comment.