This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import polars as pl | |
from polars import col | |
# Creating DataFrames | |
df = pl.DataFrame({ | |
'A': [1, 2, 3, 4], | |
'B': ['a', 'b', 'c', 'd'], | |
'C': [1.1, 2.2, 3.3, 4.4] | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pandas as pd | |
from sklearn import datasets | |
import statsmodels.api as sm | |
from stargazer.stargazer import Stargazer | |
from IPython.core.display import HTML | |
diabetes = datasets.load_diabetes() | |
df = pd.DataFrame(diabetes.data) | |
df.columns = ['Age', 'Sex', 'BMI', 'ABP', 'S1', 'S2', 'S3', 'S4', 'S5', 'S6'] | |
df['target'] = diabetes.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
try: | |
func() | |
except IOError as exc: | |
print(exc) | |
raise exc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Variable, type and functions https://github.com/PacktPublishing/Julia-1.0-Programming-Cookbook/tree/master/Chapter05 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE courses_question q | |
SET video = '' | |
FROM courses_questioncategory qc | |
WHERE qc.category = 'recordingVoiceImageOnly' | |
AND q.question_category_id = qc.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export CLICOLOR=1 | |
export TERM=xterm-color | |
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' | |
export CLICOLOR=1 | |
export HISTFILESIZE=100000 | |
export HISTSIZE=100000 | |
export LSCOLORS=GxFxCxDxBxegedabagaced |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Easiest | |
// Mydata.json.js defines a variable | |
<script src="mydata.json.js"></script> | |
//? work | |
fetch("test.json") | |
.then(response => response.json()) | |
.then(json => console.log(json)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1_matplotlib | |
# 2_seaborn |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 10_generation | |
# 11_filter | |
# 12_setting_value | |
# 13_io | |
# 15_groupby | |
# 16_merge | |
# 17_pivot_reshape | |
# 18_misc | |
# 19_type | |
# 21_category |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1_loop.py | |
# 2_list_operation.py |
NewerOlder