Loading...

verticapy.datasets.load_commodities

verticapy.datasets.load_commodities(schema: str | None = None, name: str = 'commodities') → vDataFrame

Ingests the commodities dataset into the Vertica database. This dataset is ideal for time series and regression models. If a table with the same name and schema already exists, this function creates a vDataFrame from the input relation.

Parameters

schema: str, optional

Schema of the new relation. If empty, the temporary schema is used.

name: str, optional

Name of the new relation.

Returns

vDataFrame

the commodities vDataFrame.

Examples

If you call this loader without any arguments, the dataset is loaded using the default schema (public).

from verticapy.datasets import load_commodities

load_commodities()
📅
date
Date
123
Gold
Float(22)
123
Oil
Float(22)
123
Spread
Float(22)
123
Vix
Float(22)
123
Dol_Eur
Float(22)
123
SP500
Float(22)
11986-11-01396.982515.22157894736840.97388888888888918.63157894736840.967399999999543249.220001
21987-02-01401.04517.74894736842110.85263157894736823.44631578947370.882600000000821284.200012
31987-05-01461.6519.43750.851525.41150.861100000000079290.100006
41987-08-01460.987520.31095238095241.0076190476190520.84904761904760.89600000000064329.799988
51987-10-01465.76363636363619.85909090909091.1223809523809558.21954545454550.868599999999788251.789993
61987-12-01487.07857142857117.27454545454551.1341.76409090909090.791400000000067247.080002
71988-02-01442.1238095238116.79571428571431.031533.6740.822000000000116267.820007
81988-03-01443.49130434782616.19739130434781.1030434782608729.35695652173910.810900000000402258.890015
91988-09-01413.43863636363614.53545454545450.51380952380952419.52428571428570.900299999999334271.910004
101988-11-01419.96590909090914.14136363636360.296521.65904761904760.844499999999243273.700012
111989-02-01387.972517.9365-0.20263157894736818.31263157894740.888899999999921288.859985
121989-06-01367.72727272727320.0504545454545-0.12909090909090916.73227272727270.955400000000736317.980011
131989-07-01375.20952380952419.78142857142860.19918.05650.914000000000669346.079987
141989-11-01394.36136363636419.85590909090910.078571428571428620.9323809523810.893899999999121345.98999
151989-12-01409.65526315789521.10.05918.2350.856499999999869353.399994
161990-02-01416.542522.1130.10263157894736823.32684210526320.820799999999508331.890015
171990-10-01381.33260869565236.03956521739130.84181818181818230.13043478260870.739799999999377304.0
181991-01-01384.59090909090925.23409090909090.96761904761904826.93181818181820.736699999999473343.929993
191991-04-01358.05476190476220.831.0909090909090918.92727272727270.826699999999619375.339996
201991-05-01357.11666666666721.23227272727271.2840909090909117.18045454545450.83389999999963389.829987
211992-03-01344.64090909090918.92181818181821.8572727272727316.22272727272730.812700000000404403.690002
221992-05-01337.03947368421120.97552.166514.7280.78859999999986415.350006
231992-07-01352.45217391304321.77521739130432.4890909090909113.30363636363640.729799999999159424.209991
241992-10-01344.27727272727321.68590909090912.5061904761904817.47863636363640.755199999999604418.679993
251992-11-01334.92380952380920.33852.2936842105263214.5940.807199999999284431.350006
261992-12-01334.65714285714319.41409090909092.0963636363636412.78136363636360.807199999999284435.709991
271993-03-01329.97391304347820.32217391304352.0256521739130413.69304347826090.848400000000766451.670013
281993-04-01341.947520.25252.1319047619047613.45666666666670.820100000000821440.190002
291993-05-01367.04473684210519.94952.058513.48550.821200000000317450.190002
301993-06-01371.91363636363619.09409090909091.7990909090909112.97318181818180.844300000000658450.529999
311993-08-01379.79523809523818.01090909090911.6763636363636411.95318181818180.882400000000416463.559998
321994-04-01377.90789473684216.421.4226315789473715.33473684210530.877300000000105450.910004
331994-06-01385.71363636363619.061.1712.94590909090910.845699999999852444.269989
341994-07-01385.4519.65451.16812.16350.818499999999404458.26001
351995-07-01386.13809523809517.32550.49814.07650.743437999999514562.059998
361996-03-01396.51190476190521.3323809523810.60761904761904819.08190476190480.780428570000368645.5
371996-06-01385.24520.42350.61517.67550.797715009999592670.630005
381996-11-01377.86904761904823.7050.50210526315789517.1640.78265237999949757.02002
391996-12-01369.337525.22857142857140.5204761904761920.11350.799684999999954740.73999
401997-01-01355.02525.13181818181820.57095238095238121.03136363636360.822170909999841786.159973
411998-03-01295.87045454545515.11545454545450.085909090909090920.54318181818180.9222545499997071101.75
421998-04-01308.557515.35380952380950.073333333333333322.53809523809520.9165400000001681111.75
431998-08-01284.227513.47190476190480.073333333333333331.48857142857140.90782380952381957.280029
441998-10-01296.59545454545514.46090909090910.43809523809523837.45409090909090.8383181818181821098.670044
451999-07-01256.19772727272720.10333333333330.23714285714285721.48666666666670.9662251999545451328.719971
461999-08-01256.93571428571421.27863636363640.26090909090909124.87227272727270.94356753751320.410034
472000-06-01285.36818181818231.8222727272727-0.38454545454545524.31772727272731.052983719181821454.599976
482000-09-01273.6761904761933.884-0.282522.33651.148397447571431436.51001
492000-12-01271.89210526315828.4365-0.111530.10451.110847240651320.280029
502001-02-01262.017529.60947368421050.44210526315789526.15947368421051.08538143931239.939941
512001-04-01260.7527.490.90732.2451.1188749661249.459961
522001-05-01272.05714285714328.62909090909091.1313636363636426.0951.1434916821255.819946
532001-07-01267.70681818181826.42476190476191.1976190476190524.85904761904761.160932856590911211.22998
542001-09-01282.477526.19947368421051.6129411764705938.55133333333331.095831355551040.939941
552002-08-01310.04523809523828.3852.1236363636363637.25272727272731.02246676136364916.070007
562002-10-01316.74782608695728.83652173913042.0290909090909141.39739130434781.01855763682609885.76001
572003-05-01355.40528.10857142857142.1538095238095222.54857142857140.864283957363636963.590027
582003-09-01378.85909090909128.31142857142862.5680952380952420.6823809523810.888519456863636995.969971
592004-05-01383.95263157894740.2752.18218.0760.8324215129047621120.680054
602005-02-01423.4348.14894736842110.78052631578947411.56263157894740.767651335051203.599976
612005-04-01429.14047619047652.97904761904760.68714285714285714.05714285714290.7726796172857141156.849976
622005-08-01437.77272727272764.98521739130430.21826086956521711.98521739130430.8133932101304351220.329956
632005-11-01476.66818181818258.32250.118511.60619047619050.8479040993636361249.47998
642006-05-01676.76904761904870.84409090909090.14181818181818213.48818181818180.7829057142173911270.089966
652006-08-01631.55681818181873.0430434782609-0.026956521739130412.56043478260870.7806007433043481303.819946
662006-09-01600.1563.798-0.0511.3970.7853484189523811335.849976
672007-09-01710.64579.91473684210530.5122.18210526315790.718849564051526.75
682007-12-01803.61842105263291.6870.980523.09650.686773225551468.359985
692008-03-01971.055263157895105.4541.89329.0090.6440975905714291322.699951
702008-04-01911.6112.5804545454551.6277272727272722.52681818181820.6350929536363641385.589966
712008-05-01889.125125.3976190476191.4342857142857118.79190476190480.6425454545454551400.380005
722008-10-01812.81521739130476.60869565217392.2018181818181865.44652173913040.753347826086956968.75
732009-07-01934.27173913043564.15227272727272.5431818181818225.92454545454550.709826086956522987.47998
742009-11-011126.1190476190577.992.5994736842105322.570.6702333333333331095.630005
752010-03-011115.5543478260981.20347826086962.7686956521739116.92521739130430.7371169.430054
762010-05-011204.3210526315873.74352.589530.03350.7954285714285711089.410034
772010-06-011232.3818181818275.33590909090912.4795454545454528.94090909090910.8189545454545451030.709961
782010-09-011271.4613636363675.24190476190482.1676190476190521.3223809523810.7639090909090911141.199951
792011-03-011422.84782608696102.856521739132.7169565217391319.89347826086960.7135652173913041325.829956
802011-04-011474.43055555556109.53252.720515.2080.6917142857142861363.609985
812012-04-011648.53947368421103.3211.7609523809523817.1770.7599523809523811397.910034
822012-08-011625.6818181818294.13130434782611.409565217391314.96913043478260.8061739130434781406.579956
832012-10-011746.3478260869689.49130434782611.4690476190476215.46904761904760.7706086956521741412.160034
842013-01-011671.8863636363694.75666666666671.6495238095238113.12190476190480.7521498.109985
852013-02-011630.687595.30894736842111.7168421052631613.51210526315790.749551514.680054
862013-03-011591.012592.93851.701512.39150.7720476190476191569.189941
872013-05-011416.1428571428694.50954545454551.6777272727272712.91409090909090.7707142857142861630.73999
882013-10-011314.40217391304100.5382608695652.2804545454545514.32304347826090.7330056521739131756.540039
892014-02-011298.7125100.8173684210532.3826315789473714.17947368421050.7317461859.449951
902014-04-011299.175102.0690476190482.2880952380952413.48523809523810.7240890909090911883.949951
912014-05-011288.9125102.1771428571432.1711.76142857142860.7281081818181821923.569946
922014-08-011297.00596.53619047619051.9476190476190512.41476190476190.750922003.369995
932014-10-011223.565217391384.39695652173911.8586363636363616.91130434782610.7890443478260872018.050049
942014-11-011176.412575.78947368421051.7983333333333312.24368421052630.8013682067.560059
952015-02-011231.150.58421052631581.3563157894736815.32105263157890.8805632104.5
962015-05-011197.6842105263259.2651.588513.63250.8961171428571432107.389893
972015-08-011117.52542.8676190476191.4695238095238119.58809523809520.8983647619047621972.180054
982015-09-011124.9045454545545.47952380952381.4595238095238124.60428571428570.8914286363636361920.030029
992016-04-011241.4523809523840.75523809523811.0371428571428614.34714285714290.8818176190476192065.300049
1002016-11-011240.2931818181845.66095238095241.162515.33952380952380.9276704545454542198.810059
Rows: 1-100 | Columns: 7