Telegram Group & Telegram Channel
جستجوی یک مقدار در آرایه
خیلی از اوقات می خواهیم یک شرط خاص را بر روی یک آرایه numpy بررسی کنیم. البته استفاده از یک حلقه و بررسی تک تک مقادیر با If یک راه مقدماتی است اما در numpy برای این مسئله تابع where ارائه شده است. به کمک این تابع می توانید یک شرط خاص را روی تمامی اعضای یک آرایه لحاظ کنید.
در مثال این پست در بین اعداد 1 تا 100 ، اعدادی که باقیمانده مجذور آنها به اضافه سه تقسیم بر هفت ((a**2+3)%7==0) برابر صفر می شود یا اعدادی که مضرب هشت هستند را انتخاب می کنیم.

#پایتون_مالی
#numpy
#where


عضویت در کانال پایتون برای مالی
www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug



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

جستجوی یک مقدار در آرایه
خیلی از اوقات می خواهیم یک شرط خاص را بر روی یک آرایه numpy بررسی کنیم. البته استفاده از یک حلقه و بررسی تک تک مقادیر با If یک راه مقدماتی است اما در numpy برای این مسئله تابع where ارائه شده است. به کمک این تابع می توانید یک شرط خاص را روی تمامی اعضای یک آرایه لحاظ کنید.
در مثال این پست در بین اعداد 1 تا 100 ، اعدادی که باقیمانده مجذور آنها به اضافه سه تقسیم بر هفت ((a**2+3)%7==0) برابر صفر می شود یا اعدادی که مضرب هشت هستند را انتخاب می کنیم.

#پایتون_مالی
#numpy
#where


عضویت در کانال پایتون برای مالی
www.tg-me.com/joinchat-AAAAAFGMkouqbsb86Vfzug

BY Python4Finance




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

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

What Is Bitcoin?

Bitcoin is a decentralized digital currency that you can buy, sell and exchange directly, without an intermediary like a bank. Bitcoin’s creator, Satoshi Nakamoto, originally described the need for “an electronic payment system based on cryptographic proof instead of trust.” Each and every Bitcoin transaction that’s ever been made exists on a public ledger accessible to everyone, making transactions hard to reverse and difficult to fake. That’s by design: Core to their decentralized nature, Bitcoins aren’t backed by the government or any issuing institution, and there’s nothing to guarantee their value besides the proof baked in the heart of the system. “The reason why it’s worth money is simply because we, as people, decided it has value—same as gold,” says Anton Mozgovoy, co-founder & CEO of digital financial service company Holyheld.

How to Use Bitcoin?

n the U.S. people generally use Bitcoin as an alternative investment, helping diversify a portfolio apart from stocks and bonds. You can also use Bitcoin to make purchases, but the number of vendors that accept the cryptocurrency is still limited. Big companies that accept Bitcoin include Overstock, AT&T and Twitch. You may also find that some small local retailers or certain websites take Bitcoin, but you’ll have to do some digging. That said, PayPal has announced that it will enable cryptocurrency as a funding source for purchases this year, financing purchases by automatically converting crypto holdings to fiat currency for users. “They have 346 million users and they’re connected to 26 million merchants,” says Spencer Montgomery, founder of Uinta Crypto Consulting. “It’s huge.”

Python4Finance from hk


Telegram Python4Finance
FROM USA