diff --git a/forgebox/__init__.py b/forgebox/__init__.py index 3926618..d9ef2ea 100644 --- a/forgebox/__init__.py +++ b/forgebox/__init__.py @@ -1 +1 @@ -__version__ = "0.4.18.3" +__version__ = "0.4.18.4" diff --git a/forgebox/multiproc.py b/forgebox/multiproc.py index e48b74a..d3353c9 100644 --- a/forgebox/multiproc.py +++ b/forgebox/multiproc.py @@ -131,11 +131,11 @@ def __iter__(self): def __getitem__(self, idx): global DataFrameRowling_df - return DataFrameRowling_df[list(DataFrameRowling_df.index[idx]] + return DataFrameRowling_df[list(DataFrameRowling_df.index)[idx]] def __next__(self): global DataFrameRowling_df global DataFrameRowling_ct - row = DataFrameRowling_df.loc[DataFrameRowling_df.index[DataFrameRowling_ct]] + row = DataFrameRowling_df.loc[list(DataFrameRowling_df.index)[DataFrameRowling_ct]] DataFrameRowling_ct+=1 return row \ No newline at end of file diff --git a/nbs/09_multiprocess.ipynb b/nbs/09_multiprocess.ipynb index 117a37a..7a0c8fe 100644 --- a/nbs/09_multiprocess.ipynb +++ b/nbs/09_multiprocess.ipynb @@ -173,7 +173,7 @@ }, { "cell_type": "code", - "execution_count": 60, + "execution_count": 64, "metadata": {}, "outputs": [], "source": [ @@ -209,7 +209,7 @@ " def __next__(self):\n", " global DataFrameRowling_df\n", " global DataFrameRowling_ct\n", - " row = DataFrameRowling_df.loc[DataFrameRowling_df.index[DataFrameRowling_ct]]\n", + " row = DataFrameRowling_df.loc[list(DataFrameRowling_df.index)[DataFrameRowling_ct]]\n", " DataFrameRowling_ct+=1\n", " return row" ] diff --git a/settings.ini b/settings.ini index 123762d..bd46678 100644 --- a/settings.ini +++ b/settings.ini @@ -7,7 +7,7 @@ author = xiaochen(ray) zhang author_email = b2ray2c@gmail.com copyright = xiaochen(ray) zhang branch = master -version = 0.4.18.3 +version = 0.4.18.4 min_python = 3.6 audience = Developers language = English