• GenAI – What Is Hallucination In GenAI ?

    GenAI – What Is Hallucination In GenAI ?

    GenAI – What Is Hallucination In GenAI ? Table Of Contents: What Is Hallucination In GenAI ? Examples Of GenAI Model Hallucination . Why Does Hallucination Happen ? How To Fix Hallucination ? (1) What Is Hallucination In GenAI ? (2) Examples Of GenAI Model Hallucination. (3) Why Does Hallucination Happen ? (4) How To Fix Hallucination In GenAI ?

    Read More

  • Linear Regression – Assumption – 3(How To Detect & Avoid Non Normal Distribution Of Error Term ?)

  • How To Convert DataFrame To HDF File?

    How To Convert DataFrame To HDF File?

    How To Convert DataFrame To HDF File? Table Of Contents: Syntax ‘to_hdf( )’ Method In Pandas. Examples ‘to_hdf( )’ Method. (1) Syntax: DataFrame.to_hdf(path_or_buf, key, mode=’a’, complevel=None, complib=None, append=False, format=None, index=True, min_itemsize=None, nan_rep=None, dropna=None, data_columns=None, errors=’strict’, encoding=’UTF-8′) Description: Write the contained data to an HDF5 file using HDFStore. Hierarchical Data Format (HDF) is self-describing, allowing an application to interpret the structure and contents of a file with no outside information. One HDF file can hold a mix of related objects which can be accessed as a group or as individual objects. In order to add another DataFrame or Series to an

    Read More

  • How To Find Non Missing Values In A DataFrame?

    How To Find Non Missing Values In A DataFrame?

    How To Find Non Missing Values In A DataFrame? Table Of Contents: Syntax ‘notna( )’ Method In Pandas. Examples ‘notna( )’ Method. (1) Syntax: DataFrame.notna() Description: Detect existing (non-missing) values. Return a boolean same-sized object indicating if the values are not NA. Non-missing values get mapped to True. Characters such as empty strings ” or numpy.inf are not considered NA values (unless you set pandas.options.mode.use_inf_as_na = True).   NA values, such as None or numpy.NaN, get mapped to False values. Returns: DataFrame – Mask of bool values for each element in DataFrame that indicates whether an element is not an NA value. (2) Examples Of notna() Method: Example-1: df

    Read More

  • How To Drop Duplicate Rows From DataFrame?

    How To Drop Duplicate Rows From DataFrame?

    How To Drop Duplicate Rows From DataFrame? Table Of Contents: Syntax ‘drop_duplicates( )’ Method In Pandas. Examples ‘drop_duplicates( )’ Method. (1) Syntax: DataFrame.drop_duplicates(subset=None, *, keep=’first’, inplace=False, ignore_index=False) Description: Return DataFrame with duplicate rows removed. Considering certain columns is optional. Indexes, including time indexes, are ignored. Parameters: subset: column label or sequence of labels, optional – Only consider certain columns for identifying duplicates, by default use all of the columns. keep: {‘first’, ‘last’, False}, default ‘first’ – Determines which duplicates (if any) to keep. – first : Drop duplicates except for the first occurrence. – last : Drop duplicates except for the last occurrence. –

    Read More

  • How To Copy Pandas DataFrame?

    How To Copy Pandas DataFrame?

    How To Copy Pandas DataFrame? Table Of Contents: Syntax To Copy A Data Frame. Examples Of Copying A DataFrame. (1) Syntax: DataFrame.copy(deep=True) Description: Make a copy of this object’s indices and data. When deep=True (default), a new object will be created with a copy of the calling object’s data and indices. Modifications to the data or indices of the copy will not be reflected in the original object (see notes below). When deep=False, a new object will be created without copying the calling object’s data or index (only references to the data and index are copied). Any changes to the data of the

    Read More

  • How To Get Memory Usages Of Each Columns In DataFrame?

    How To Get Memory Usages Of Each Columns In DataFrame?

    How To Get Memory Usages Of Each Columns In DataFrame? Table Of Contents: Syntax To Get Memory Usages Of Data Frame. Examples Of Memory Usages. (1) Syntax: pandas.DataFrame.memory_usage Description: Return the memory usage of each column in bytes Parameters: index: bool, default True – Specifies whether to include the memory usage of the DataFrame’s index in returned Series. If index=True, the memory usage of the index is the first item in the output. deep: bool, default False- If True, introspect the data deeply by interrogating object dtypes for system-level memory consumption, and include it in the returned values. Returns: Series: A Series whose

    Read More

  • Python User Inputs

    Python User Inputs

    Python User Inputs Table Of Contents: What Is User Input? How To Take User Input? Examples Of User Input. (1) What Is User Input? As of now we have assigned the value to a variable directly inside the program like x = 10. Python allows user to assign value to a variable dynamically while your program is running. We can use python in built input() method to perform this operation. (2) How To Take User Input? To take user input we have to show a input box to the user, so that they can enter there value. input() method allows

    Read More