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

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
主站蜘蛛池模板: 保德县| 思南县| 虹口区| 谷城县| 福清市| 承德县| 碌曲县| 大姚县| 古丈县| 香河县| 视频| 全南县| 紫阳县| 晴隆县| 昌图县| 普定县| 丹江口市| 遂昌县| 濮阳县| 桂东县| 新津县| 米易县| 云南省| 光泽县| 秭归县| 垫江县| 巫山县| 蓬溪县| 库尔勒市| 河北区| 金阳县| 定安县| 咸阳市| 东方市| 平和县| 吉安县| 武邑县| 平利县| 胶南市| 屏东县| 大方县|