Skip to content

Commit 8833db6

Browse files
committed
specify configuration setting for newer modin versions
Signed-off-by: Alexander Myskov <[email protected]>
1 parent 30537f6 commit 8833db6

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

AI-and-Analytics/End-to-end-Workloads/Census/census_modin.ipynb

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,11 +94,18 @@
9494
"outputs": [],
9595
"source": [
9696
"#import pandas as pd\n",
97+
"import modin.pandas as pd\n",
98+
"\n",
9799
"import modin.config as cfg\n",
98-
"cfg.Engine.put('native')\n",
99-
"cfg.Backend.put('omnisci')\n",
100-
"cfg.IsExperimental.put('True')\n",
101-
"import modin.pandas as pd"
100+
"from packaging import version\n",
101+
"\n",
102+
"# Since modin 0.12.0 OmniSci engine can be enabled by setting the single StorageFormat configuration\n",
103+
"if version.parse(modin.__version__) <= version.parse('0.11.3'):\n",
104+
" cfg.Engine.put('native')\n",
105+
" cfg.Backend.put('omnisci')\n",
106+
" cfg.IsExperimental.put('True')\n",
107+
"else:\n",
108+
" cfg.StorageFormat.put('omnisci')\n"
102109
]
103110
},
104111
{

0 commit comments

Comments
 (0)