No SettingwithCopyWarning when expected (jupyter shows but VS code python doesn't)
See original GitHub issueVersion: 1.49.0 (user setup)
Commit: e790b931385d72cf5669fcefc51cdf65990efa5d
Date: 2020-09-10T13:22:08.892Z
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.18363
Extension: 2020.8.108011 (9 September 2020)
Pandas: '1.0.3'
There is no SettingwithCopyWarning.
import pandas as pd
import numpy as np
df = pd.DataFrame({'a': ['one', 'two'], 'b': np.arange(2)})
df[df.a.str.startswith('o')].b = -1
Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
No SettingwithCopyWarning when expected (jupyter shows ...
Based on what Jupyter has in its UI, it may be that we're only showing the text/html output when the stderr from a...
Read more >How to deal with SettingWithCopyWarning in Pandas
The SettingWithCopyWarning was created to flag potentially confusing "chained" assignments, such as the following, which does not always ...
Read more >SettingwithCopyWarning: How to Fix This Warning in Pandas
This guide explains why the warning is generated and shows you how to solve ... to ignore the warning if your code still...
Read more >3 ways to deal with SettingWithCopyWarning in Pandas
We have to understand “SettingWithCopy” is a warning and not an error. An error breaks your code and prevents you from moving on...
Read more >SettingWithCopyWarning in pandas - Towards Data Science
pandas drops a warning here because the value assignment might or might not have worked as expected. To be clear, the value assignment...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
runStartupCommands accepts an array now. You should be able to do this:
When we fix microsoft/vscode-python#11970 this will no longer be necessary.
@rchiodo thanks and I did see it after change the warnings settings to default.