In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
Algorithm channel https://mp.weixin.qq.com/s/AbRgqFSyMR_4zvadYQxmBA
Wechat account alg-channel
Function introduction now a well-known Internet company, likes to share, has pushed more than 160 practical information articles, combined with examples and work to explain algorithms, including: basic algorithms, examples of machine learning algorithms, introduction to deep learning, Stanford NLP course notes, Python, Pandas practice introduction series, Sina and other machine learning job interview experience.
Today, when preprocessing input data, we encounter a problem that seems strange at first glance. Let's start with the question. I want to extract part of the data according to the conditions and modify the value of a column of this part of the data. I originally thought that doing so would modify the data source. As it turns out, no!
This? Modify the data slice, will modify the original data ah! Isn't the data extracted according to the mask a reference to the original data?
It was confirmed after the experiment just now: it is different!
Modify the data slice, the original data is modified, because the slice is a reference to the original data; modify the data extracted by the mask, the original data does not change, because the data returned by the mask points to a new memory, not the original block reference!
I wonder if readers have encountered this problem? I hope I don't get involved in this pit in the future!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.