Skip to content

Commit 6606316

Browse files
committed
Renaming of casted -> transformed
1 parent 5846338 commit 6606316

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

‎docs/tutorials/basics.ipynb‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,7 @@
10641064
"from osw.data.import_utility import HelperModel\n",
10651065
"\n",
10661066
"class PersonHelper(Person, HelperModel):\n",
1067+
" # Attributes of the first base class are set to Optional[Any], default: None\n",
10671068
" FirstName: Any\n",
10681069
" LastName: Any\n",
10691070
" Email: Any\n",
@@ -1103,10 +1104,10 @@
11031104
"metadata": {},
11041105
"cell_type": "code",
11051106
"source": [
1106-
"# Actually we access 'casted' directly\n",
1107+
"# Actually we access 'transformed' directly\n",
11071108
"# If the transformation operations had not been performed already,\n",
1108-
"# accessing 'casted' would trigger them\n",
1109-
"john = john_helper.casted\n",
1109+
"# accessing 'transformed' would trigger them\n",
1110+
"john = john_helper.transformed\n",
11101111
"print(\"After casting:\")\n",
11111112
"pprint(john.dict())"
11121113
],
@@ -1121,7 +1122,7 @@
11211122
"# We can do the same for all instances quite easily:\n",
11221123
"entities = []\n",
11231124
"for ii in data_df.index:\n",
1124-
" entities.append(PersonHelper(**data_df.iloc[ii].to_dict()).casted)"
1125+
" entities.append(PersonHelper(**data_df.iloc[ii].to_dict()).transformed)"
11251126
],
11261127
"id": "30e0620c9ef49fdf",
11271128
"outputs": [],

0 commit comments

Comments
 (0)