Telegram Group & Telegram Channel
سری ها در Pandas

قبلا در خصوص انواع داده ها در پانداس صحبت کرده بودم. یکی از مزیت های پانداس به سایر کتابخانه ها مثل Numpy این است که در Pandas داده ها علاوه بر ایندکس عددی می توانند ایندکس رشته ای هم داشته باشند. برای مثال در آرایه زیر در Numpy که مثلا قیمت یک سهم در ده روز است؛ صرفا می توان بر اساس جایگاه هر کدام از عناصر آنها را فراخوانی کرد.
a=numpy.array([24,23,25,22,21,20])
در حالی که در پانداس می توان به جای اندیس عددی، مثلا تاریخ را به عنوان اندیس قرار داد. این موضوع بسیار در کارهایی که با داده ها سر و کار داریم به ما کمک شایانی می کند.
در شکل بالا چند خط دستور برای این موضوع ارائه شده است.


پایتون برای مالی در تلگرام
https://www.tg-me.com/ua/Python4Finance/com.python4finance



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

سری ها در Pandas

قبلا در خصوص انواع داده ها در پانداس صحبت کرده بودم. یکی از مزیت های پانداس به سایر کتابخانه ها مثل Numpy این است که در Pandas داده ها علاوه بر ایندکس عددی می توانند ایندکس رشته ای هم داشته باشند. برای مثال در آرایه زیر در Numpy که مثلا قیمت یک سهم در ده روز است؛ صرفا می توان بر اساس جایگاه هر کدام از عناصر آنها را فراخوانی کرد.
a=numpy.array([24,23,25,22,21,20])
در حالی که در پانداس می توان به جای اندیس عددی، مثلا تاریخ را به عنوان اندیس قرار داد. این موضوع بسیار در کارهایی که با داده ها سر و کار داریم به ما کمک شایانی می کند.
در شکل بالا چند خط دستور برای این موضوع ارائه شده است.


پایتون برای مالی در تلگرام
https://www.tg-me.com/ua/Python4Finance/com.python4finance

BY Python4Finance




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

View MORE
Open in Telegram


Python4Finance Telegram | DID YOU KNOW?

Date: |

Dump Scam in Leaked Telegram Chat

A leaked Telegram discussion by 50 so-called crypto influencers has exposed the extraordinary steps they take in order to profit on the back off unsuspecting defi investors. According to a leaked screenshot of the chat, an elaborate plan to defraud defi investors using the worthless “$Few” tokens had been hatched. $Few tokens would be airdropped to some of the influencers who in turn promoted these to unsuspecting followers on Twitter.

Telegram Auto-Delete Messages in Any Chat

Some messages aren’t supposed to last forever. There are some Telegram groups and conversations where it’s best if messages are automatically deleted in a day or a week. Here’s how to auto-delete messages in any Telegram chat. You can enable the auto-delete feature on a per-chat basis. It works for both one-on-one conversations and group chats. Previously, you needed to use the Secret Chat feature to automatically delete messages after a set time. At the time of writing, you can choose to automatically delete messages after a day or a week. Telegram starts the timer once they are sent, not after they are read. This won’t affect the messages that were sent before enabling the feature.

Python4Finance from ua


Telegram Python4Finance
FROM USA