Skip to content

Commit 868b065

Browse files
committed
Update docstrings with examples
1 parent d95e6bf commit 868b065

53 files changed

Lines changed: 611 additions & 155 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/danfojs-base/aggregators/groupby.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.

src/danfojs-base/core/daterange.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.

src/danfojs-base/core/datetime.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.
@@ -12,11 +12,11 @@
1212
* limitations under the License.
1313
* ==========================================================================
1414
*/
15-
import Series from "./series";
1615
import { ArrayType1D, DateTime } from "../shared/types";
16+
import Series from "./series";
1717

18-
const MONTH_NAME = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
1918
const WEEK_NAME = ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"];
19+
const MONTH_NAME = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
2020

2121
/**
2222
* Format and handle all datetime operations on Series or Array of date strings

src/danfojs-base/core/frame.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.
@@ -3151,7 +3151,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
31513151
}
31523152

31533153
/**
3154-
* Exposes functions for creating charts from a DataFrame or Series.
3154+
* Exposes functions for creating charts from a DataFrame.
31553155
* Charts are created using the Plotly.js library, so all Plotly's configuration parameters are available.
31563156
* @param divId name of the HTML Div to render the chart in.
31573157
*/
@@ -3166,7 +3166,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
31663166
}
31673167

31683168
/**
3169-
* Converts a DataFrame or Series to CSV.
3169+
* Converts a DataFrame to CSV.
31703170
* @param options Configuration object. Supports the following options:
31713171
* - `filePath`: Local file path to write the CSV file. If not specified, the CSV will be returned as a string. Option is only available in NodeJS.
31723172
* - `fileName`: Name of the CSV file. Defaults to `data.csv`. Option is only available in Browser.
@@ -3229,7 +3229,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
32293229
}
32303230

32313231
/**
3232-
* Converts a DataFrame or Series to JSON.
3232+
* Converts a DataFrame to JSON.
32333233
* @param options Configuration object. Supported options:
32343234
* - `filePath`: The file path to write the JSON to. If not specified, the JSON object is returned. Option is only available in NodeJS.
32353235
* - `fileName`: The name of the JSON file. Defaults to `data.json`. Option is only available in Browser.
@@ -3283,7 +3283,7 @@ export default class DataFrame extends NDframe implements DataFrameInterface {
32833283

32843284

32853285
/**
3286-
* Converts a DataFrame or Series to Excel Sheet.
3286+
* Converts a DataFrame to Excel file format.
32873287
* @param options Configuration object. Supported options:
32883288
* - `sheetName`: The sheet name to be written to. Defaults to `'Sheet1'`.
32893289
* - `filePath`: The filePath to be written to. Defaults to `'./output.xlsx'`. Option is only available in NodeJs

src/danfojs-base/core/generic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.

src/danfojs-base/core/indexing.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.

src/danfojs-base/core/math.ops.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2021, JsData. All rights reserved.
3+
* Copyright 2022 JsData. All rights reserved.
44
*
55
* This source code is licensed under the MIT license found in the
66
* LICENSE file in the root directory of this source tree.

0 commit comments

Comments
 (0)