question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No SettingwithCopyWarning when expected (jupyter shows but VS code python doesn't)

See original GitHub issue
Version: 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

image

image

Microsoft Data Science for VS Code Engineering Team: @rchiodo, @IanMatthewHuff, @DavidKutu, @DonJayamanne, @greazer, @joyceerhl

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Sep 18, 2020

runStartupCommands accepts an array now. You should be able to do this:

 "python.dataScience.runStartupCommands": [
    "%config Completer.use_jedi = False",
   "warnings.simplefilter(action="default")"   
]

When we fix microsoft/vscode-python#11970 this will no longer be necessary.

0reactions
StevenLi-DScommented, Sep 25, 2020

@rchiodo thanks and I did see it after change the warnings settings to default.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found