Tweetovi
- Tweetovi, trenutna stranica.
- Tweetovi i odgovori
- Medijski sadržaj
Blokirali ste korisnika/cu @python_tip
Jeste li sigurni da želite vidjeti te tweetove? Time nećete deblokirati korisnika/cu @python_tip
-
Working with
#fractions? Explore the fractions module: >>> from fractions import Fraction as frac >>> print(frac(3, 10)) 3/10 >>> print(frac(0.33).limit_denominator(100)) 33/100 >>> print(frac('1/4') + frac(1, 5)) 9/20 https://docs.python.org/3/library/fractions.html …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Get information about the underlying system with the platform module: >>> import platform >>> platform.architecture() ('64bit', '') >>> platform.machine() 'x86_64' >>> platform.system() 'Linux' https://docs.python.org/3/library/platform.html …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#pathlib Path.stat().st_size prints size of the file in bytes https://docs.python.org/3/library/pathlib.html#pathlib.Path.stat …pic.twitter.com/OIgpXxS0I9Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
>>> "a"*10 'aaaaaaaaaa' >>> ["a"]*10 ['a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a', 'a']
#pythonHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Do you need some hints for using
#pandas? Dovpanda is your friend. https://github.com/dovpanda-dev/dovpanda …pic.twitter.com/Ri5v0LbS6aHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
The Python visualization world can be sometimes a frustrating place. It helps if you understand basic building blocks - see "Effectively Using
#Matplotlib" tutorial https://pbpython.com/effective-matplotlib.html …pic.twitter.com/eGldoUkymMHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Sometimes it is handy to get R functionality in Python (through
#r2py) or Python functionality in R (through#reticulate). But starting to think in a new language can be painful. G. V. Wilson wrote The Tidynomicon, an introduction to R for Python coders. http://tidynomicon.tech/ pic.twitter.com/UvkSFnCSaXHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Also, thanks
@mzeeqazi for a correction of a mistake in the first version of this tweet.Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
x += a is not always the same as x = x + a >>> x = y = [1] >>> x += [2] >>> x, y # return ([1, 2], [1, 2]) >>> x = x + [3] >>> x,y # return ([1, 2, 3], [1, 2]) That is because `+=` calls __iadd__ method while `+` calls __add__. https://stackoverflow.com/questions/9766387/different-behaviour-for-list-iadd-and-list-add … Another example https://twitter.com/zzzeek/status/1203439552507076609 …
Prikaži ovu nitHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#pythontip by@thisPtr Check if the value exists in a DataFrame https://thispointer.com/pandas-check-if-a-value-exists-in-a-dataframe-using-in-not-in-operator-isin/ …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
nbdev: using Jupyter notebooks for package development, testing and continuous integrationhttps://www.fast.ai/2019/12/02/nbdev/ …
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Need some fake data? Faker package will generate them for you. https://pypi.org/project/Faker/
#pythonHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Everything you never knew you wanted to know about
#decorators by@radekosmulski https://github.com/radekosmulski/python_musings/blob/master/03_decorate_me_a_river.ipynb …#pythonHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Use np.isnan(), pd.isna() or math.isnan() to check for nan values: >>> np.nan == np.nan False >>> np.nan is math.nan False >>> math.isnan(np.nan) True >>> pd.isna(float('nan')) True >>> np.isnan(math.nan) True https://towardsdatascience.com/navigating-the-hell-of-nans-in-python-71b12558895b …
#python#pandas#numpyHvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Need to track
#jupyter notebooks changes or add comments? Try ReviewNB - an app for#githubhttps://www.reviewnb.com/Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Advent of Code is here. https://adventofcode.com/ Happy coding!
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
Do you run long, time-demanding calculations in Jupyter Notebook? With `jupyter-notify` extension, you will get a browser notification when your calculation is done (=when the cell is completed) https://github.com/ShopRunner/jupyter-notify … Example: pic.twitter.com/uugYC26qCk
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
To our US followers: >>> from cowsay import turkey >>> turkey('Happy Thanksgiving!') (inspired by
@RLangTip)#cowsaypic.twitter.com/eWyZ1kvQc4Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
#pythontip by@justmarkham: Three easy ways to rearrange the columns in your DataFrame (Do you have a Python tip you want to share through this account? Submit it at http://bit.ly/pythontip or just mention@python_tip in your tweet)https://twitter.com/justmarkham/status/1196797909389455360 …Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi -
ADTK = new Python library for time series anomaly detection https://github.com/arundo/adtk (from the same group `tsaug` = a Python package for time series augmentation, https://github.com/arundo/tsaug )pic.twitter.com/CdZ1nCkpdV
Hvala. Twitter će to iskoristiti za poboljšanje vaše vremenske crte. PoništiPoništi
Čini se da učitavanje traje već neko vrijeme.
Twitter je možda preopterećen ili ima kratkotrajnih poteškoća u radu. Pokušajte ponovno ili potražite dodatne informacije u odjeljku Status Twittera.