Telegram Group & Telegram Channel
معکوس سازی در پایتون
خیلی از اوقات پیش می آید که ترتیب داده هایی که به دست ما رسیده است دقیقا معکوس آن چیزی است که نیاز داریم. برای مثال داده هایی که از سایت Tsetmc دریافت می کنیم از آخرین روز به اولین روز (DESC) چیده شده اند اما ما برای رسم آنها نیاز داریم تا داده ها به صورت معکوس یعنی از روز اول به روز آخر (ASC) چیده شوند.
در پایتون راحت ترین روش برای معکوس کردن داده ها استفاده از Slicing یا بخش بندی است. کافی است گام حرکت را از حالت پیشفرض که 1 است به 1- تغییر دهیم.
در تصویر این پست چند نمونه معکوس سازی نمایش داده شده است.

#معکوس_سازی
#مدلسازی_مالی
#پایتون_مالی
#Slicing

پایتون برای مالی
https://www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug



tg-me.com/python4finance/491
Create:
Last Update:

معکوس سازی در پایتون
خیلی از اوقات پیش می آید که ترتیب داده هایی که به دست ما رسیده است دقیقا معکوس آن چیزی است که نیاز داریم. برای مثال داده هایی که از سایت Tsetmc دریافت می کنیم از آخرین روز به اولین روز (DESC) چیده شده اند اما ما برای رسم آنها نیاز داریم تا داده ها به صورت معکوس یعنی از روز اول به روز آخر (ASC) چیده شوند.
در پایتون راحت ترین روش برای معکوس کردن داده ها استفاده از Slicing یا بخش بندی است. کافی است گام حرکت را از حالت پیشفرض که 1 است به 1- تغییر دهیم.
در تصویر این پست چند نمونه معکوس سازی نمایش داده شده است.

#معکوس_سازی
#مدلسازی_مالی
#پایتون_مالی
#Slicing

پایتون برای مالی
https://www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug

BY Python4Finance




Share with your friend now:
tg-me.com/python4finance/491

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

How to Invest in Bitcoin?

Like a stock, you can buy and hold Bitcoin as an investment. You can even now do so in special retirement accounts called Bitcoin IRAs. No matter where you choose to hold your Bitcoin, people’s philosophies on how to invest it vary: Some buy and hold long term, some buy and aim to sell after a price rally, and others bet on its price decreasing. Bitcoin’s price over time has experienced big price swings, going as low as $5,165 and as high as $28,990 in 2020 alone. “I think in some places, people might be using Bitcoin to pay for things, but the truth is that it’s an asset that looks like it’s going to be increasing in value relatively quickly for some time,” Marquez says. “So why would you sell something that’s going to be worth so much more next year than it is today? The majority of people that hold it are long-term investors.”

Telegram auto-delete message, expiring invites, and more

elegram is updating its messaging app with options for auto-deleting messages, expiring invite links, and new unlimited groups, the company shared in a blog post. Much like Signal, Telegram received a burst of new users in the confusion over WhatsApp’s privacy policy and now the company is adopting features that were already part of its competitors’ apps, features which offer more security and privacy. Auto-deleting messages were already possible in Telegram’s encrypted Secret Chats, but this new update for iOS and Android adds the option to make messages disappear in any kind of chat. Auto-delete can be enabled inside of chats, and set to delete either 24 hours or seven days after messages are sent. Auto-delete won’t remove every message though; if a message was sent before the feature was turned on, it’ll stick around. Telegram’s competitors have had similar features: WhatsApp introduced a feature in 2020 and Signal has had disappearing messages since at least 2016.

Python4Finance from ca


Telegram Python4Finance
FROM USA