Tag: as
C++ : How to split a string using String and character as Delimiter?
In this article we will see 2 techniques to split a std::string in C++ and return the result in std::vector<std::string> i.e. Splitting a std::string using a char as delimiter. Splitting a std::string using an another std::string as delimiter. How to Split a std::string using a char as delimiter: In this we will convert the passed …
C++ : How to split a string using String and character as Delimiter?Read More
C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::map
In this article we will discuss how to use User defined classes as key in std::map. By default std::map uses “operator <” as sorting criteria for keys. For default data types like int and std::string etc, operator < is available by default but for User defined classes operator < is not available by default. Advertisements …
C++ : Map Tutorial Part 3: Using User defined class objects as keys in std::mapRead More
C++11 : How to use std::thread as a member variable in class ?
In this article we will discuss how to use std::thread object as member variable inside class and its benefits. As std::thread objects are move only, therefore while designing a class that use std::thread as member variable, we need to take care that objects of this class should also be move only. Advertisements Creating Move-only class with …
C++11 : How to use std::thread as a member variable in class ?Read More
Python : **kwargs | Functions that accept variable length key value pair as arguments
In this article we will discuss how to create functions in Python that can accept variable length arguments in key value pair format. Suppose we want to define a function that will print the provided students details. Details will be in key value pairs, where key represents the property name and value as property’s value. …
Python : **kwargs | Functions that accept variable length key value pair as argumentsRead More
How to Get a Function Name as a String in Python?
In this python tutorial, we will learn how to get a function name as a string. Table Of Contents Get a function name as a string using name Get a function name as a string using func_name Get a function name as a string using qualname Summary Get a function name as a string using …
Join List of items of different types as String in Python
In Python, a list can have items of different type. In this article, ee will learn about the methods through which we can join a list of items of different types, as a string in Python Programming language. Table Of Contents Introduction Method 1 : Using map() Method 2 : Using join() method Method 3 …
Join List of items of different types as String in PythonRead More
Extract specific columns to new DataFrame as copy in Pandas
Multiple times while processing data, it is important to extract specific columns and store them in a new DataFrame. In this article, we will cover multiple ways to achieve that. Table of Contents Preparing Dataset Select subset of columns using copy() function Select subset of columns using filter() function Select subset of columns using drop() …
Extract specific columns to new DataFrame as copy in PandasRead More
Get Dictionary Keys as List in Python
In this article, we will dicsuss different ways to get the dictionary keys as List in Python. Table Of Contents Introduction Method 1: Using dict.keys() Method 2: Using For Loop Method 3: Using List Comprehension Method 4: Using Unpacking Method 5: Using map() and itemgetter() Summary Introduction Suppose we have a dictionary like this, Advertisements …
Get Dictionary values as List in Python
In this article, we will dicsuss different ways to get the dictionary values as List in Python. Table Of Contents Introduction Method 1: Using dict.values() Method 2: Using For Loop Method 3: Using List Comprehension Method 4: Using Unpacking Method 5: Using itemgetter Summary Introduction Suppose we have a dictionary like this, Advertisements # A …
Get Certified by Google Cloud as a Professional Cloud Architect
Get Certified by Google Cloud as a Professional Cloud Architect. Professional Cloud architect certification proves that you have the knowledge of all of the core Google Cloud Platform services and expertise on how to design and architect solutions on Google Cloud. This guide helps you to prepare for the Professional Cloud Architect Exam. Overview Before …
Get Certified by Google Cloud as a Professional Cloud ArchitectRead More