# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     name: python3
# ---

# + id="l661l2MGzKN_" colab_type="code" colab={}
# !mkdir -p "/content/drive/My Drive/Colab Notebooks/matrix/matrix_2"

# + id="gE5yBGCZzref" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 132} outputId="16f69a07-cdcd-4fd2-e3d9-112b49c6607e" executionInfo={"status": "error", "timestamp": 1583403084321, "user_tz": -60, "elapsed": 4106, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}}
# cd "/content/drive/My Drive/Colab Notebooks/matrix_2"

#c19cbf7a1e67c3a08a1ef21cd3a66c0841ae18a8

# + id="yngbQNU3zvaB" colab_type="code" colab={}
# ls

# + id="K1z-INjM0Z11" colab_type="code" outputId="3d04f3da-548f-4ee2-efef-31c2c8ecd49b" executionInfo={"status": "ok", "timestamp": 1583403086752, "user_tz": -60, "elapsed": 1382, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}
# cd "drive/My Drive/Colab Notebooks/matrix/matrix_2/"

# + id="N3uM4xtd3Cm7" colab_type="code" outputId="d1cd50a5-790e-4313-a4f0-2bb6794c2b50" executionInfo={"status": "ok", "timestamp": 1583403093641, "user_tz": -60, "elapsed": 6614, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}
# !pwd

# + id="Hqmqdqkx0pE6" colab_type="code" colab={}
#{}@

GITHUB_TOKEN = ""
GITHUB_URL = "https://{}@github.com/eb-art/cars_forecasting.git".format(GITHUB_TOKEN)

# + id="tsQJ-2va0-M0" colab_type="code" outputId="9a0233a9-9bab-4aee-878b-577343416b0a" executionInfo={"status": "ok", "timestamp": 1583403145864, "user_tz": -60, "elapsed": 5996, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 54}
# !git clone $GITHUB_URL

# + id="qjlvj7-O9cjI" colab_type="code" outputId="24eac396-4b19-4b22-c185-75dce17ba3b3" executionInfo={"status": "ok", "timestamp": 1583403156110, "user_tz": -60, "elapsed": 3230, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}
# ls

# + id="1x9XE7lT9et1" colab_type="code" outputId="53b08578-1784-4ece-89d0-9501e7df6b58" executionInfo={"status": "ok", "timestamp": 1583403157327, "user_tz": -60, "elapsed": 383, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 54}
# cd cars_forecasting/

# + id="MGDJ8a1r1Gye" colab_type="code" colab={}
# !mkdir data

# + id="8oDN7FqQ15Se" colab_type="code" colab={}
# !echo -e "*\n!.gitignore" > data/.gitignore
#zignoruj wszystko (*) w katalogu oprócz (!)

# + id="mybcJnjX4yW0" colab_type="code" colab={}
# #!git init

# + id="M7E43qiv2Vi8" colab_type="code" colab={}
# !git add data/.gitignore

# + id="hAxt6xa_2ZA3" colab_type="code" outputId="40daa649-f9eb-40d6-f024-96f16fe0725c" executionInfo={"status": "ok", "timestamp": 1583131072940, "user_tz": -60, "elapsed": 2102, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 245}
# !git commit -m "add data directory"

# + id="-PmK6wfB4EOS" colab_type="code" colab={}
# !git config --global user.email "<EMAIL>"
# !git config --global user.name "<NAME>"

# + id="_B9cIncbLP78" colab_type="code" colab={"base_uri": "https://localhost:8080/", "height": 156} outputId="748eeb4e-e2eb-45d5-8af1-44445d18b93b" executionInfo={"status": "ok", "timestamp": 1583403178684, "user_tz": -60, "elapsed": 7024, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}}
# !git commit -m 'add data visualization'

# + id="tASnsY0u5O7s" colab_type="code" outputId="ee6b0985-8e40-418b-f0a7-909fa0b7f5c2" executionInfo={"status": "ok", "timestamp": 1583131138165, "user_tz": -60, "elapsed": 1907, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 104}
# !git commit -m 'add data directory'

# + id="v0k4ElAG4Vx3" colab_type="code" outputId="161b4353-0241-4630-de69-1efdd835059d" executionInfo={"status": "ok", "timestamp": 1583403195055, "user_tz": -60, "elapsed": 3125, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 52}
# !git push -u origin master

# + id="Q-EKS8h45yd3" colab_type="code" colab={}
# #!git pull# origin master

# + id="48U5wcCC5FaS" colab_type="code" outputId="e3a980cd-107c-4af0-d397-46127b4a182e" executionInfo={"status": "ok", "timestamp": 1583131290022, "user_tz": -60, "elapsed": 767, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 54}
# cd data

# + id="iOCC84Vz-mTs" colab_type="code" outputId="e85ccfce-d242-4b5a-aecf-0e37f83a31af" executionInfo={"status": "ok", "timestamp": 1583131419003, "user_tz": -60, "elapsed": 4089, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 141}
# !curl -L http://bit.ly/dw_car_data -o car.h5

# + id="orSvlVKt_FEE" colab_type="code" outputId="41fde423-c377-46df-afa8-e6c7ea99d601" executionInfo={"status": "ok", "timestamp": 1583131457691, "user_tz": -60, "elapsed": 1628, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}

# !ls

# + id="Iqa9Ykzb_PBT" colab_type="code" outputId="91664f17-fd4a-4a89-93a9-e180ca3dd32b" executionInfo={"status": "ok", "timestamp": 1583131468563, "user_tz": -60, "elapsed": 2293, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 52}
# !ls -lh

# + id="v8YGrw1nAG67" colab_type="code" outputId="7840f18d-f05e-4450-c320-814a1f47fbf3" executionInfo={"status": "ok", "timestamp": 1583131700536, "user_tz": -60, "elapsed": 2353, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}
# ls

# + id="fuchkGqDALBT" colab_type="code" outputId="913676af-6258-4a4e-9bf1-1429f0855a5f" executionInfo={"status": "ok", "timestamp": 1583131707745, "user_tz": -60, "elapsed": 852, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 54}
# cd cars_forecasting/

# + id="3yzynmtN_Rlk" colab_type="code" colab={}
import pandas as pd

# + id="QQE_BsXn_UWR" colab_type="code" colab={}
df = pd.read_hdf('data/car.h5')

# + id="pZ9V7n-d_YaO" colab_type="code" outputId="b424af54-c4f3-4a4d-9c3d-48c6d0b16a66" executionInfo={"status": "ok", "timestamp": 1583131571580, "user_tz": -60, "elapsed": 7121, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 297}
# !pip install --upgrade tables

# + id="pg-97buoAU2W" colab_type="code" outputId="1d53d003-693a-4b94-b248-2a4e370e1fd2" executionInfo={"status": "ok", "timestamp": 1583131746861, "user_tz": -60, "elapsed": 401, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 34}
df.shape

# + id="MHNMH4W5_pks" colab_type="code" outputId="d03a7165-001f-42bc-9ce0-8ce5c6ac8211" executionInfo={"status": "ok", "timestamp": 1583131758122, "user_tz": -60, "elapsed": 655, "user": {"displayName": "<NAME>", "photoUrl": "", "userId": "02481780017115552185"}} colab={"base_uri": "https://localhost:8080/", "height": 585}
df.sample(5)

# + id="LFAWjmmaAYsJ" colab_type="code" colab={}


StarcoderdataJupyterScriptsDedupFiltered