ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Python Data Science Snippets

Collection of Sublime Text snippets for data science and machine learning in Python (Imports, NumPy, Pandas, Matplotlib, Scikit-learn, Keras, etc)

Details

Installs

  • Total 81
  • Win 47
  • Mac 14
  • Linux 20
Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8 Nov 7 Nov 6 Nov 5 Nov 4 Nov 3 Nov 2 Nov 1 Oct 31 Oct 30 Oct 29 Oct 28 Oct 27 Oct 26 Oct 25 Oct 24 Oct 23 Oct 22 Oct 21 Oct 20 Oct 19 Oct 18 Oct 17 Oct 16
Windows 0 1 2 1 1 1 2 1 1 1 2 2 3 0 2 2 0 3 4 2 3 1 4 0 1 1 2 3 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 1 1 1 0 1 1 0 0 0 0 0 0 0 1 0 0 1 2 1 1 1 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 1 1 0 1 1 0 1 0 0 0 1 0 1 1 1 0 1 0 0 3 1 2 0 1 0 1 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

📊 Python Data Science Snippets

Python Data Science Snippets is a collection of Sublime Text snippets for data science and machine learning in Python.

💻 Installation

The easiest way to install Python Data Science Snippets is through Package Control. After it is enabled inside Sublime Text, open the command palette and find Package Control: Install Package and press ENTER. Then, find Python Data Science Snippets in the list. Press ENTER again, and this package is installed!

📈 Snippets

Imports

Import snippets start with i followed by the package's import alias.

Trigger Description
ikeras from tensorflow import keras
inp import numpy as np
ipd import pandas as pd
iplt import matplotlib.pyplot as plt
isklearn from sklearn.$1 import $2
isns import seaborn as sns
itf import tensorflow as tf
itorch import torch

NumPy

Trigger Description
arange np.arange
array np.array
linspace np.linspace
logspace np.logspace
ones np.ones
zeros np.zeros

Pandas

Trigger Description
columns df.columns
describe df.describe
df pd.DataFrame
head df.head
read_csv pd.read_csv
ser pd.Series
tail df.tail

Matplotlib

Trigger Description
bar plt.bar
legend plt.legend
pie plt.pie
plot plt.plot
scatter plt.scatter
show plt.show
subplots plt.subplots
title plt.title
xlabel plt.xlabel
ylabel plt.ylabel

Scikit-learn

Trigger Description
knn KNeighborsClassifier
linreg LinearRegression
logreg LogisticRegression
rfc RandomForestClassifier
tts train_test_split

Keras

Trigger Description
compile model.compile
fit model.fit
layer keras.layers.layer
load_model keras.models.load_model
save model.save
sequential keras.Sequential

The snippet files are in the snippets folder of this GitHub repository.