@@ -52,23 +52,27 @@ A class representing Tableau Data Sources, embedded in workbook files or in TDS
5252
5353** Methods:**
5454
55- save
55+ `Datasource. save( self )` Saves any changes to the datasource to the existing file .
5656
57- save_as
57+ `Datasource. save_as( self )` Saves any changes to the datasource to a new file specified by the `new_file` parameter.
5858
59- add_calculation
59+ `Datasource.add_field( self , name, datatype, role, field_type, caption)` Adds a base field object with the given values.
6060
61- ** Properities:**
61+ `Datasource.remove_field(self , field)` Remove a given field.
62+
63+ `Datasource.add_calculation(self , caption, formula, datatype, role, type )` Adds a calculated field with the given values.
64+
65+ ** Properties:**
6266
6367`self .name` Returns string with the name of datasource.
6468
6569`self .version` Returns string of daatasource' s version.
6670
6771`self .caption` Returns string of user defined name of datasource if exists.
6872
69- `self .connections` Returns list of connections are used in workbook.
73+ `self .connections` Returns list of connections used in workbook.
7074
71- `self .fileds ` Returns key- value result of field name and their attributes.
75+ `self .fields ` Returns key- value result of field name and their attributes.
7276
7377`self .calculations` Returns calculated field of the workbook.
7478
@@ -115,7 +119,7 @@ Represents a field in a datasource
115119
116120`Field.add_alias(self , key, value)` Add an alias for a given display value.
117121
118- ** Properities :**
122+ ** Properties :**
119123
120124`self .name` Returns a string providing a nice name for the field which is derived from the alias, caption, or the id .
121125
0 commit comments