Skip to content

Instantly share code, notes, and snippets.

pyenv management

pyenv local 3.10 --- set in curr dir
pyenv versions ---- list all available
pyenv install 3.9 

note: you even can use python installed via PYENV for compiling inside Pycharm. Very convenient.

.venv - how to work with it without GUI helpers

mpg displacement horsepower weight model_year origin
18.0 307.0 130.0 3504 70 usa
15.0 350.0 165.0 3693 70 usa
18.0 318.0 150.0 3436 70 usa
16.0 304.0 150.0 3433 70 usa
17.0 302.0 140.0 3449 70 usa
15.0 429.0 198.0 4341 70 usa
14.0 454.0 220.0 4354 70 usa
14.0 440.0 215.0 4312 70 usa
14.0 455.0 225.0 4425 70 usa
PassengerId Survived Pclass Name Sex Age SibSp Parch Ticket Fare Cabin Embarked
1 0 3 Braund, Mr. Owen Harris male 22 1 0 A/5 21171 7.25 S
2 1 1 Cumings, Mrs. John Bradley (Florence Briggs Thayer) female 38 1 0 PC 17599 71.2833 C85 C
3 1 3 Heikkinen, Miss. Laina female 26 0 0 STON/O2. 3101282 7.925 S
4 1 1 Futrelle, Mrs. Jacques Heath (Lily May Peel) female 35 1 0 113803 53.1 C123 S
5 0 3 Allen, Mr. William Henry male 35 0 0 373450 8.05 S
6 0 3 Moran, Mr. James male 0 0 330877 8.4583 Q
7 0 1 McCarthy, Mr. Timothy J male 54 0 0 17463 51.8625 E46 S
8 0 3 Palsson, Master. Gosta Leonard male 2 3 1 349909 21.075 S
9 1 3 Johnson, Mrs. Oscar W (Elisabeth Vilhelmina Berg) female 27 0 2 347742 11.1333 S
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
"fixed acidity";"volatile acidity";"citric acid";"residual sugar";"chlorides";"free sulfur dioxide";"total sulfur dioxide";"density";"pH";"sulphates";"alcohol";"quality"
7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5
7.8;0.88;0;2.6;0.098;25;67;0.9968;3.2;0.68;9.8;5
7.8;0.76;0.04;2.3;0.092;15;54;0.997;3.26;0.65;9.8;5
11.2;0.28;0.56;1.9;0.075;17;60;0.998;3.16;0.58;9.8;6
7.4;0.7;0;1.9;0.076;11;34;0.9978;3.51;0.56;9.4;5
7.4;0.66;0;1.8;0.075;13;40;0.9978;3.51;0.56;9.4;5
7.9;0.6;0.06;1.6;0.069;15;59;0.9964;3.3;0.46;9.4;5
7.3;0.65;0;1.2;0.065;15;21;0.9946;3.39;0.47;10;7
7.8;0.58;0.02;2;0.073;9;18;0.9968;3.36;0.57;9.5;7
@aleksejalex
aleksejalex / encrypting_via_img.ipynb
Created May 3, 2024 10:30
encrypting_via_img.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
name mfr type_of calories protein fat sodium fiber carbo sugars potass vitamins shelf weight cups rating
100% Bran N C 70 4 1 130 10 5 6 280 25 3 1 0.33 68.402973
100% Natural Bran Q C 120 3 5 15 2 8 8 135 0 3 1 1 33.983679
All-Bran K C 70 4 1 260 9 7 5 320 25 3 1 0.33 59.425505
All-Bran with Extra Fiber K C 50 4 0 140 14 8 0 330 25 3 1 0.5 93.704912
Almond Delight R C 110 2 2 200 1 14 8 -1 25 3 1 0.75 34.384843
Apple Cinnamon Cheerios G C 110 2 2 180 1.5 10.5 10 70 25 1 1 0.75 29.509541
Apple Jacks K C 110 2 0 125 1 11 14 30 25 2 1 1 33.174094
Basic 4 G C 130 3 2 210 2 18 8 100 25 3 1.33 0.75 37.038562
Bran Chex R C 90 2 1 200 4 15 6 125 25 1 1 0.67 49.120253
@aleksejalex
aleksejalex / perceptron_pumpkin_seeds_classification.ipynb
Last active April 9, 2024 20:56
Perceptron_Pumpkin_Seeds_classification.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksejalex
aleksejalex / solving_fxeq0.ipynb
Last active March 13, 2024 16:10
solving_fxeq0.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksejalex
aleksejalex / img2img_on_own_data.ipynb
Created December 18, 2023 07:36
img2img_on_own_data.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@aleksejalex
aleksejalex / img_manipulations.py
Last active December 17, 2023 01:25
img_manipulations.py
"""
just selected python functions for EMERGENT project purposes
...to be iported in IPYNB notebook
(C) aleksejalex, SteveLikesToDebug
"""
import numpy as np
# imports for images