Spaces:
Running
Running
Mustjaab
commited on
Update DuckDB_Loading_CSVs.py
Browse files- DuckDB_Loading_CSVs.py +3 -3
DuckDB_Loading_CSVs.py
CHANGED
@@ -61,10 +61,10 @@ def _(mo):
|
|
61 |
f"""
|
62 |
/* Another way to load the CSV could be
|
63 |
SELECT *
|
64 |
-
FROM read_csv('AI_Research_Data.csv')
|
65 |
*/
|
66 |
SELECT *
|
67 |
-
FROM "AI_Research_Data.csv"
|
68 |
LIMIT 5;
|
69 |
"""
|
70 |
)
|
@@ -83,7 +83,7 @@ def _(mo):
|
|
83 |
f"""
|
84 |
-- Build a table based on the CSV where it just contains the specified columns
|
85 |
CREATE TABLE Domain_Analysis AS
|
86 |
-
SELECT Year, Concept, publications FROM "AI_Research_Data.csv"
|
87 |
"""
|
88 |
)
|
89 |
return Discipline_Analysis, Domain_Analysis
|
|
|
61 |
f"""
|
62 |
/* Another way to load the CSV could be
|
63 |
SELECT *
|
64 |
+
FROM read_csv('https://github.com/Mustjaab/Loading_CSVs_in_DuckDB/blob/main/AI_Research_Data.csv')
|
65 |
*/
|
66 |
SELECT *
|
67 |
+
FROM "https://github.com/Mustjaab/Loading_CSVs_in_DuckDB/blob/main/AI_Research_Data.csv"
|
68 |
LIMIT 5;
|
69 |
"""
|
70 |
)
|
|
|
83 |
f"""
|
84 |
-- Build a table based on the CSV where it just contains the specified columns
|
85 |
CREATE TABLE Domain_Analysis AS
|
86 |
+
SELECT Year, Concept, publications FROM "https://github.com/Mustjaab/Loading_CSVs_in_DuckDB/blob/main/AI_Research_Data.csv"
|
87 |
"""
|
88 |
)
|
89 |
return Discipline_Analysis, Domain_Analysis
|