Tag: change
How to change current working directory in python ?
In this article we will discuss how to change the current working directory in python. Current working directory is the directory in which program is running. Advertisements Change Current Working Directory in Python First of all we need to import python’s os module i.e. import os Python’s os module provides a function to change the …
How to change current working directory in python ?Read More
Python Pandas : Replace or change Column & Row index names in DataFrame
In this article we will discuss how to change column names or Row Index names in DataFrame object. First of all, create a dataframe object of students records i.e. Advertisements students = [ (‘jack’, 34, ‘Sydeny’) , (‘Riti’, 30, ‘Delhi’ ) , (‘Aadi’, 16, ‘New York’) ] # Create a DataFrame object dfObj = pd.DataFrame(students, …
Python Pandas : Replace or change Column & Row index names in DataFrameRead More
Pandas : Change data type of single or multiple columns of Dataframe in Python
In this article we will discuss how to change the data type of a single column or multiple columns of a Dataframe in Python. Change Data Type of a Single Column To change the data type of a single column in dataframe, we are going to use a function series.astype(). Let’s first discuss about this …
Pandas : Change data type of single or multiple columns of Dataframe in PythonRead More
MySQL : Change Datatype of a Column
This article will see how to change or modify the datatype of a column in MySQL. Table of Contents Change datatype of a column without losing data: MODIFY Change datatype of a column using Modify : Syntax Change datatype of a column using Modify: Example Change datatype of a column without losing data: CHANGE Change …
MySQL: change column type to VARCHAR without losing data
This article will see how to convert the column type to VARCHAR without losing the data. Table of Contents: Change column type to VARCHAR without losing data : MODIFY clause Change column type to VARCHAR without losing data : CHANGE clause We will get started by creating a sample table student_enroll_data. Advertisements CREATE TABLE student_enroll_data …
MySQL: change column type to VARCHAR without losing dataRead More
MYSQL: change column order
This article will see how to change columns’ order in a MySQL table without losing the data already present in the column. Table of Contents Syntax for MySQL change column order MySQL change column order AFTER MySQL make column FIRST Using CHANGE clause to change column order of a table in MysQL Let us get …
Change Column Names in Pandas Dataframe
This article will discuss how to change column names in a Pandas Dataframe in Python. Table Of Contents Change Column Names in Dataframe using rename() method Change Column Names in Dataframe using columns attribute with list Change Column Names in Dataframe using set_axis() Change Column names in Dataframe using str.replace() A DataFrame is a data …
Change the Order of Columns in Pandas DataFrame
In this article we will discuss different ways to Change the Order of Columns in Pandas DataFrame. Table Of Contents Change the order of Dataframe Columns using reindex() Change the order of Dataframe Columns using sort_index() Change the order of Dataframe Columns using Indexing Change the order by moving specific column to particular position A …
Change permissions for Directory & Sub-directories in Linux
In this article we will discuss different ways to change the permissions of a folder and all files or subdirectories inside it in Linux. Table Of Contents Introduction Permission Types Change permissions of a Directory & all files/sub-directories in it using chmod command: Example:1 Example:2 Find and Change Permissions of selected files/sub-directories inside a diretory …
Change permissions for Directory & Sub-directories in LinuxRead More
How to Set or Change Timezone on Debain 11
How to Set or Change Timezone on Debian 11. In this guide you are going to learn how to configure or setup your own timezone on Debian server. Setting up a correct timezone is necessary on your server for some cronjob or any system related processes. By default, when a server is provisioned a default …