Skip to content

Commit 477040d

Browse files
author
andrew.wong
committed
convert *_csv to *CSV, *_json to *JSON
1 parent 1a56d9b commit 477040d

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

api-reference/dataframe/dataframe.to_csv.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Abs,Count,country code
6969
7070
let df = new dfd.DataFrame(data);
7171
72-
const csv = df.to_csv({ download: false });
72+
const csv = df.toCSV({ download: false });
7373
console.log(csv);
7474
</script>
7575
</body>

api-reference/dataframe/dataframe.to_json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ console.log(jsonObjRow);
8282
8383
let df = new dfd.DataFrame(data);
8484
85-
const csv = df.to_csv({ download: false });
85+
const csv = df.toCSV({ download: false });
8686
console.log(csv);
8787
</script>
8888
</body>

api-reference/input-output/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ description: Functions for reading tabular/structured data into DataFrame/Series
88

99
| \`\` | |
1010
| ----------------------------------- | -------------------------------------------------------- |
11-
| [`read_csv`](danfo.read_csv.md) | Read a comma-separated values (csv) file into DataFrame. |
11+
| [`readCSV`](danfo.read_csv.md) | Read a comma-separated values (csv) file into DataFrame. |
1212
| [`read_excel`](danfo.read_excel.md) | Read an Excel values (xlsx) file into DataFrame. |
13-
| [`read_json`](danfo.read_json.md) | Read a JSON values (json) file into DataFrame. |
14-
| [to_csv](danfo.to_csv.md) | Writes a DataFrame/Series to CSV file |
13+
| [`readJSON`](danfo.read_json.md) | Read a JSON values (json) file into DataFrame. |
14+
| [toCSV](danfo.to_csv.md) | Writes a DataFrame/Series to CSV file |
1515
| [to_excel](danfo.to_excel.md) | Writes a DataFrame/Series to Excel file |
16-
| [to_json](danfo.to_json.md) | Writes a DataFrame/Series to JSON file |
16+
| [toJSON](danfo.to_json.md) | Writes a DataFrame/Series to JSON file |
1717

18-
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))
18+
Writing to `CSV` and `JSON` can also be done directly from DataFrame or Series objects (e.g. [`DataFrame.toCSV()`](../dataframe/dataframe.to_csv.md))

api-reference/plotting/violin-plots.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default App;
122122
<div id="plot_div"></div>
123123
<script>
124124
125-
dfd.read_csv("https://raw.githubusercontent.com/pandas-dev/pandas/master/doc/data/titanic.csv")
125+
dfd.readCSV("https://raw.githubusercontent.com/pandas-dev/pandas/master/doc/data/titanic.csv")
126126
.then(df => {
127127
128128
sub_df = df.loc({ columns: ["Age", "Fare"] })

examples/titanic-survival-prediction-using-danfo.js-and-tensorflow.js.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ async function load_process_data() {
7777
╚═══╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╧═══════════════════╝
7878
```
7979

80-
You wrote an async function because loading a dataset over the internet takes a few seconds depending on your network. Inside the async function, you pass in the url of the titanic dataset to the read\_csv function.
80+
You wrote an async function because loading a dataset over the internet takes a few seconds depending on your network. Inside the async function, you pass in the url of the titanic dataset to the readCSV function.
8181

8282
Next you'll perform some basic data preprocessing. The [ctypes](../api-reference/dataframe/dataframe.dtypes.md) attribute returns the column data types:
8383

getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2368,7 +2368,7 @@ dfd.readCSV("/home/Desktop/titanic.csv")
23682368
23692369
<script>
23702370
2371-
dfd.read_csv("https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv")
2371+
dfd.readCSV("https://raw.githubusercontent.com/plotly/datasets/master/finance-charts-apple.csv")
23722372
.then(df => {
23732373
23742374
//do something like display descriptive statistics

0 commit comments

Comments
 (0)