Publicações com #PythonTip

#PythonTip

Publicações públicas do X que usam #PythonTip.

Hashtags relacionados

  1. Daily Python Tip 🐍🐧@python_tip
    Did you know that there is an else clause in Python's `for` loops letting you check if the loop encountered a `break`? Example: 👇👇 #pythontip by @bascodes
    Baixar
    Bas Steins @bascodes
    Did you know that there is an else clause in Python's `for` loops letting you check if the loop encountered a `break`? #pythontip
    1128
  2. Bas Steins✓@bascodes
    Did you know that there is an else clause in Python's `for` loops letting you check if the loop encountered a `break`? #pythontip
    Baixar
    017
  3. Daily Python Tip 🐍🐧@python_tip
    Working with unstructured data like text, image, audio, video? DocArray is an open-source library to store such data and it efficiently process them for ML tasks such as embed, search, recommend, etc. Thanks @hxiao for this #pythontip
    Baixar
    0335
  4. Daily Python Tip 🐍🐧@python_tip
    #pythontip from @AjayKaphola to create a file with parent folders: file_path = '/folder1/folder2/file.txt' os.makedirs(os.path.dirname(file_path ), exist_ok=True) with open(file_path , "w") as f: f.write("Sample file content")
    Baixar
    2630
  5. Bas Steins✓@bascodes
    💡🐍 Python is a popular language for connecting different data sources. Use a 𝙲𝚑𝚊𝚒𝚗𝙼𝚊𝚙 to get a singular value from a collection of different 𝚍𝚒𝚌𝚝s: #tweet100 #pythontip
    Baixar
    615109
  6. Daily Python Tip 🐍🐧@python_tip
    #pythontip by @fgomezdelarosa_: df.columns = [x.replace(' ', '_').lower() for x in df.columns] replace spaces and transform in lowercase the variable names in df columns. (Do you know a good Python tip? Just tag us the tweet, or even better, fill it to
    21349
  7. Pluri@PluriLabs
    #PythonTip: When starting out with Python, spend time understanding data types and basic operations. They're foundational to all future learning. #coding #datascience 🧵[1/9]
    20143
  8. Daily Python Tip 🐍🐧@python_tip
    #Python Best Practices for a 🆕 Project in 2021: pyenv, poetry, VS code, pytest, pytest-cov, pre-commit, flake8, black, mypy, isort Thanks, @Eli_Krumova, for this #pythontip. Do you want to contribute a tip? Send it to or just mention us in your tweet.
    Sourabh Singh Katoch @SourabhSKatoch
    21531
  9. Mike Driscoll✓@driscollis
    🐍 #PythonTip: Use list comprehensions for concise and readable one-liners. Example: `[x**2 for x in range(10) if x%2 == 0]` #CodeClean
    64417.6K
  10. Mike Driscoll✓@driscollis
    #PythonTip 🐍🔥 Use `pathlib` to list all the files of a specific type in a folder. Here's an example:
    Baixar
    41315.3K
  11. Daily Python Tip 🐍🐧@python_tip
    #pythontip from @ratneshkush: If you want to use R in Python notebook, use rpy2 package: import rpy2 %load_ext rpy2.ipython # start each cell with %%R %%R a <- 'Ratnesh' b <- 'Data Science' print(paste(a,b)) # [1] Ratnesh Data Science
    0744
  12. Daily Python Tip 🐍🐧@python_tip
    #pythontip by @bascodes: To avoid unintended consequences, change your function defaults arguments from (first figure) to (second figure). Otherwise, calling the function without that optional argument will access the same list each time.
    Baixar
    31563
  13. Daily Python Tip 🐍🐧@python_tip
    You can name your slices: >>> record = "01234567890123456789I want this0123456789" >>> IWANT = slice(20,31) >>> record[IWANT] 'I want this' #python #pythontip
    12559
  14. Mostrar mais publicações