官术网_书友最值得收藏!

Uploading a CSV

In many types of analytical work, data is available in CSV or Excel files and not in a database. You can use the Upload a CSV feature to upload CSVs as tables in Superset, without parent database integration.

We will get some real data to test this. Let's download the Ethereum transaction history from http://etherscan.io and create a new table:

curl https://etherscan.io/chart/tx?output=csv > /tmp/eth_txn.csv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 35279 0 35279 0 0 98k 0 --:--:-- --:--:-- --:--:-- 98k

# create a sqlite database to store the csv
cd ~/.superset
# this will create a sqlite database, quit after it opens the console
sqlite3 upload_csv.db
Edit Database details form

Once you have created the upload_csv database integration, make sure you select it when you are uploading the .csv file, as shown in the following screenshot:

Load CSV form
主站蜘蛛池模板: 甘泉县| 长春市| 柘荣县| 皋兰县| 绍兴县| 澜沧| 竹山县| 兴宁市| 德阳市| 淮南市| 大邑县| 广水市| 封丘县| 梅州市| 瓮安县| 榆树市| 安陆市| 两当县| 繁昌县| 合山市| 广河县| 双柏县| 三门峡市| 合作市| 静宁县| 广州市| 丰县| 肇庆市| 娱乐| 罗源县| 石林| 兴文县| 台中县| 奈曼旗| 达孜县| 吉木萨尔县| 内江市| 辽宁省| 观塘区| 陇南市| 周至县|