From 477040df86cf7f933f6252682e0442ec95acd3b2 Mon Sep 17 00:00:00 2001 From: "andrew.wong" Date: Thu, 4 May 2023 15:18:52 +0100 Subject: [PATCH 1/2] convert *_csv to *CSV, *_json to *JSON --- api-reference/dataframe/dataframe.to_csv.md | 2 +- api-reference/dataframe/dataframe.to_json.md | 2 +- api-reference/input-output/README.md | 10 +++++----- api-reference/plotting/violin-plots.md | 2 +- ...ival-prediction-using-danfo.js-and-tensorflow.js.md | 2 +- getting-started.md | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/api-reference/dataframe/dataframe.to_csv.md b/api-reference/dataframe/dataframe.to_csv.md index 9791120..b4429c0 100644 --- a/api-reference/dataframe/dataframe.to_csv.md +++ b/api-reference/dataframe/dataframe.to_csv.md @@ -69,7 +69,7 @@ Abs,Count,country code let df = new dfd.DataFrame(data); - const csv = df.to_csv({ download: false }); + const csv = df.toCSV({ download: false }); console.log(csv); diff --git a/api-reference/dataframe/dataframe.to_json.md b/api-reference/dataframe/dataframe.to_json.md index 2f1a3f5..320170e 100644 --- a/api-reference/dataframe/dataframe.to_json.md +++ b/api-reference/dataframe/dataframe.to_json.md @@ -82,7 +82,7 @@ console.log(jsonObjRow); let df = new dfd.DataFrame(data); - const csv = df.to_csv({ download: false }); + const csv = df.toCSV({ download: false }); console.log(csv); diff --git a/api-reference/input-output/README.md b/api-reference/input-output/README.md index e86d5de..310be54 100644 --- a/api-reference/input-output/README.md +++ b/api-reference/input-output/README.md @@ -8,11 +8,11 @@ description: Functions for reading tabular/structured data into DataFrame/Series | \`\` | | | ----------------------------------- | -------------------------------------------------------- | -| [`read_csv`](danfo.read_csv.md) | Read a comma-separated values (csv) file into DataFrame. | +| [`readCSV`](danfo.read_csv.md) | Read a comma-separated values (csv) file into DataFrame. | | [`read_excel`](danfo.read_excel.md) | Read an Excel values (xlsx) file into DataFrame. | -| [`read_json`](danfo.read_json.md) | Read a JSON values (json) file into DataFrame. | -| [to_csv](danfo.to_csv.md) | Writes a DataFrame/Series to CSV file | +| [`readJSON`](danfo.read_json.md) | Read a JSON values (json) file into DataFrame. | +| [toCSV](danfo.to_csv.md) | Writes a DataFrame/Series to CSV file | | [to_excel](danfo.to_excel.md) | Writes a DataFrame/Series to Excel file | -| [to_json](danfo.to_json.md) | Writes a DataFrame/Series to JSON file | +| [toJSON](danfo.to_json.md) | Writes a DataFrame/Series to JSON file | -Writing to `CSV` and `JSON` can also be done directly from DataFrame or Series objects (e.g. [`DataFrame.to_csv()`](../dataframe/dataframe.to_csv.md)) +Writing to `CSV` and `JSON` can also be done directly from DataFrame or Series objects (e.g. [`DataFrame.toCSV()`](../dataframe/dataframe.to_csv.md)) diff --git a/api-reference/plotting/violin-plots.md b/api-reference/plotting/violin-plots.md index 73ba658..0ccb71b 100644 --- a/api-reference/plotting/violin-plots.md +++ b/api-reference/plotting/violin-plots.md @@ -122,7 +122,7 @@ export default App;