🐼 Rename Specific Columns in Dataframe
https://www.pythonforbeginners.com/basics/rename-specific-columns-in-dataframe
@pythonl
https://www.pythonforbeginners.com/basics/rename-specific-columns-in-dataframe
@pythonl
👍10
🔥 Only a Matter of Style: Age Transformation Using a Style-Based Regression Model
⚙️ GitHub
➡️ Colab
@pythonl
mkdir pretrained_models
pip install gdown
gdown "https://drive.google.com/u/0/uc?id=1XyumF6_fdAxFmxpFcmPf-q84LU_22EMC&export=download" -O pretrained_models/sam_ffhq_aging.pt
wget "https://github.com/italojs/facial-landmarks-recognition/raw/master/shape_predictor_68_face_landmarks.dat"
⚙️ GitHub
➡️ Colab
@pythonl
👍12🔥3
🗒 Read Specific Columns From CSV File
https://www.pythonforbeginners.com/basics/read-specific-columns-from-csv-file
@pythonl
https://www.pythonforbeginners.com/basics/read-specific-columns-from-csv-file
@pythonl
👍13❤1🔥1
🔋 Recipes from Python SQLite docs
https://rednafi.github.io/reflections/recipes-from-python-sqlite-docs.html
@pythonl
https://rednafi.github.io/reflections/recipes-from-python-sqlite-docs.html
@pythonl
👍13🔥3❤2
🔥 10 Unknown Security Pitfalls for Python
https://blog.sonarsource.com/10-unknown-security-pitfalls-for-python/
@pythonl
https://blog.sonarsource.com/10-unknown-security-pitfalls-for-python/
@pythonl
👍10❤1🔥1
This media is not supported in your browser
VIEW IN TELEGRAM
The Fuck 🖕
The Fuck is a magnificent app that corrects errors in previous console commands.
Если вы ошиблись в предыдущих командах в консоли вызовите The Fuck, интрумент постарается исправить команды и сделает «всё красиво»
⚙️ Github
@pythonl
The Fuck is a magnificent app that corrects errors in previous console commands.
Если вы ошиблись в предыдущих командах в консоли вызовите The Fuck, интрумент постарается исправить команды и сделает «всё красиво»
pip install thefuck
⚙️ Github
@pythonl
😁29👍20❤3🔥2👎1
⌚ Use pandas DateOffsets for easy date manipulation
https://www.wrighters.io/use-pandas-dateoffsets-for-easy-date-manipulation/
@pythonl
import pandas as pd
now = pd.Timestamp.now()
print("Add a day:", now + pd.offsets.DateOffset(days=1))
print("Add a week:", now + pd.offsets.DateOffset(weeks=1))
print("Add a month:", now + pd.offsets.DateOffset(months=1))
print("Add an hour:", now + pd.offsets.DateOffset(hours=1))
print("Add a day, replace the hour:", now + pd.offsets.DateOffset(days=1, hour=13))
print("Add a month, normalize:", now + pd.offsets.DateOffset(month=1, normalize=True))
print("Add 2 days across DST change:", pd.Timestamp("2022-11-05 00:00:00", tz="America/Chicago") + pd.offsets.DateOffset(days=2))
print("Add 2 days across DST change (with Timedelta, no adjustment):", pd.Timestamp("2022-11-05 00:00:00", tz="America/Chicago") + pd.Timedelta(days=2))
https://www.wrighters.io/use-pandas-dateoffsets-for-easy-date-manipulation/
@pythonl
👍10❤2🔥2
↙️ Left Join Dataframes in Python
https://www.pythonforbeginners.com/basics/left-join-dataframes-in-python
@pythonl
https://www.pythonforbeginners.com/basics/left-join-dataframes-in-python
@pythonl
👍9🔥3❤1
This media is not supported in your browser
VIEW IN TELEGRAM
🔎 Hunt down social media accounts by username across social networks
⚙️ Github
@pythonl
# clone the repo
$ git clone https://github.com/sherlock-project/sherlock.git
# change the working directory to sherlock
$ cd sherlock
# install the requirements
$ python3 -m pip install -r requirements.txt
⚙️ Github
@pythonl
👍14👎2🔥2❤1😁1
❤20👍10🔥7👎6😁4😱2
🌐 translatepy
An aggregation of multiple translation API
List of Built-in Services
- Microsoft Bing Translator
- DeepL
- Google Translate
- LibreTranslate
- Microsoft Translator
- MyMemory
- Reverso
- Translate.com
- Yandex Translate
⚙️ Github
@pythonl
An aggregation of multiple translation API
pip install --upgrade translatepy
List of Built-in Services
- Microsoft Bing Translator
- DeepL
- Google Translate
- LibreTranslate
- Microsoft Translator
- MyMemory
- Reverso
- Translate.com
- Yandex Translate
⚙️ Github
@pythonl
GitHub
GitHub - Animenosekai/translate: A module grouping multiple translation APIs
A module grouping multiple translation APIs. Contribute to Animenosekai/translate development by creating an account on GitHub.
👍14🔥2❤1
https://www.pythonforbeginners.com/basics/numpy-array-operations-in-python
@pythonl
Please open Telegram to view this post
VIEW IN TELEGRAM
👍12