Lecture 36: Python DataFrame() | How to Create DataFrame? || by Ashish Asthana
• DataFrame is a two dimensional data structure i.e., data is aligned in a tabular manner in rows and columns. Note that, Series are used to work with one dimensional array, whereas DataFrame can be used with two dimensional arrays.
• DataFrame can store hetrogenous (multiple data type) data and size can be changed (mutable) in DataFrame. DataFrame has two different index i.e. column-index and row-index.
• We can perform many operations on datasets like arithmetic operations, columns and rows selection, column and rows addition etc.
A pandas DataFrame can be created using the following constructor −
dataFrameObject= pandas.DataFrame( data, index, columns, dtype, copy)
The parameters of the constructor are as follows −
Parameter Description
data data can be represented as series, list, dict, constant or other dataframes..
index
For the row labels, the index to be used for the resulting frame is optional. By default, the index value is displayed from 0 to n -1
columns
For column labels, the optional default syntax is - np.arrange(n) . This is only true if no index is passed.
dtype Data type of each column.
copy This command or whatever it is used for copying of data, if the default is False.
A pandas DataFrame can be created using various inputs like −
i. Two-dimensional dictionaries
ii. Two-dimensional ndarrays (NumPy array)
iii. Series
iv. Lists
v. Another DataFrame object
----------------------------------------------------------------------------
Like, Share and Subscribe to my channel to get video updates
For more information, Please write back to us at [email protected]
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Lecture 36: Python DataFrame() | How to Create DataFrame? || by Ashish Asthana», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.