Get the App
SLTechnology News&Howtos  ›  Development  › 

How python selects rows with a specific ID

Shulou Source: shulou.com Published: 2022-06-01 04:51:07 09月22日 Update

This article will explain in detail how python chooses rows with a specific ID. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Select a row with a specific ID

In SQL, we can use SELECT * FROM... WHERE ID ('A001', 'C022') To get a record with a specific ID. If you want to do the same thing with Pandas, you can

Dfdf_filter = df ['ID'] .isin ([' A001''C022'']) DF [DF _ filter] this article on "how python chooses rows with a specific ID" ends here. I hope the above content can be helpful to you so that you can learn more knowledge. If you think the article is good, please share it for more people to see.

Tags: Selection articles more good practical things content articles knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB vpn Xiaomi Microsoft Shulou Tech Info