What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-10-26 15:35:11
angular9 spy
it("should be able to upper case a string", function () { var spytoUpperCase = spyOn(String.prototype, 'toUpperCase') expect(utils.toUpperCase).toBeDefined(); expect(utils.toUpperCase("hello world")).toEqual("HELLO WORLD")... Add solution -
Python 2021-09-15 17:27:01
pandas mutate new column
#Using .assign you can make multiple #operations that depend on the #previous ones without the need #of creating intermediate variables import pandas as pd df = pd.DataFrame({ 'name': ['alice','bob','charlie','daniel'], 'age': [25,66,56,78] }) d... Add solution