Tapas Kumar Ghosh has Published 150 Articles

Python program to get the individual components of the current date-time

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 17:01:57

192 Views

In Python, we have some time in-built functions i.e. datetime(), today(), now(), and strftime() that can be used to get the individual components of the current date-time. The individual component of the current date-time means the exact present timing and date. To solve this type of problem we will use ... Read More

How to slice a PySpark dataframe in two row-wise dataframe?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:52:47

585 Views

PySpark dataframe is defined as a collection of distributed data that can be used in different machines and generate the structure data into a named column. The term slice is normally used to represent the partitioning of data. In Python, we have some built-in functions like limit(), collect(), exceptAll(), etc ... Read More

How to Set Axis Limits bokeh?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:49:05

204 Views

Bokeh is a built-in Python library that makes a highly interactive graph for data visualization. Generally, web developers use this library to build powerful dashboards, live app applications, and, simple charts on the web. In Python, we have some bokeh built-in functions like figure(), vbar(), y_range(), etc. to Set Axis ... Read More

How to set axes labels & limits in a Seaborn plot?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:46:23

8K+ Views

Creating the plots using Seaborn will adjust the labels and axes limitations to make the plots more understandable. The axes labels are the names we can provide to the x and y axes so that others can understand what the plots show. We can focus on select areas of the ... Read More

How to set the tab size in Text widget in Tkinter?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:44:39

565 Views

The Python Tkinter module allows us to develop graphical user interfaces (GUIs) and show main windows on the screen. The value of a Tkinter window screen from its ability to improve the user experience and enable the interactivity of user's programs. In Python, we have some built-in functions like Tk(), ... Read More

How to setup Conda environment with Jupyter Notebook?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:42:10

315 Views

The Jupyter Notebook is an open-source web application that allows users to run all features of the Data and Machine Learning project. The word Conda is known as package manager which handles different packages by installing them through its command. The Conda environment is similar to Python virtual environment that ... Read More

How to set alignment of each dropdown widget in Jupyter?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:40:20

318 Views

We will use HTML and CSS to align dropdown widgets in Jupyter. We may modify the alignment of the dropdown widget by adding certain CSS classes to it. This allows us to place the dropdowns in our Jupyter notebook either side by side or one below the other, making it ... Read More

How to search a value within a Pandas DataFrame row?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:36:45

2K+ Views

Pandas DataFrame is a part of the Data Structure that is used to represent the 2D structure in tabular form(rows and columns). In Python, we have some built-in functions like eq(), any(), loc[], and, apply() that can be used to search a value within a Pandas DataFrame row. For example- ... Read More

How to sort by value in PySpark?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:11:02

506 Views

PySpark is distributed data processing engine that will use to write the code for an API. PySpark is the collaboration of Apache Spark and Python. Spark is large-scale data processing platform that provides the capability to process petabyte scale data. In Python, we have PySpark built-in functions like orderBy(), sort(), ... Read More

How to Skip every Nth index of Numpy array?

Tapas Kumar Ghosh

Tapas Kumar Ghosh

Updated on 17-Jul-2023 16:08:35

753 Views

In Python, we have some built-in functions like array(), len(), append, and, mod() that can be use to Skip every Nth index of Numpy array. There are many ways for skipping the nth index of a NumPy array. The numpy modulus technique is one option. We can first arrange the ... Read More

Previous 1 ... 6 7 8 9 10 ... 15 Next
Advertisements