Telerik Forums
Community Forums Forum
1 answer
131 views

I'm currently working on a data science project using Python's Pandas library, and I've encountered an issue with missing values in my DataFrame. My dataset contains various columns, and some of them have missing values represented as NaN.

Here's a snippet of my DataFrame:


import pandas as pd

# Sample DataFrame with missing values
data = {
    'Name': ['Alice', 'Bob', 'Charlie', 'David', 'Eva'],
    'Age': [25, 28, None, 32, 22],
    'Score': [85, None, 78, 92, None],
    'Salary': [50000, 60000, 55000, None, 48000]
}

df = pd.DataFrame(data)

I want to handle these missing values effectively before proceeding with my analysis. I'm considering a few options like removing rows with NaN, imputing the missing values with the mean, or using interpolation.

I've been seeking assistance from the scalers data science project website, but I've been unable to find the answer. I would appreciate some advice on how to handle missing values in my DataFrame. I would also welcome some code samples that show how the selected method is implemented. I appreciate your assistance in advance!

Nikolay
Telerik team
 answered on 02 Aug 2023
1 answer
144 views

Hello

I would like to delete the Telerik user account but I couldn't find any hints on how to do this.

Thanks

Christian
Top achievements
Rank 1
 answered on 31 Jul 2023
1 answer
96 views
i am try to import rtf file with header and footer images it throw the following error,

   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.Lists.HtmlExportListManager.ShouldRestartLevel(List list, Int32 listLevelIndex)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.HtmlContentManager.<ExportParagraph>d__1f.MoveNext()
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.HtmlContentManager.<ExportBlockContainer>d__b.MoveNext()
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.BodyElement.<OnEnumerateInnerElements>d__0.MoveNext()
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.WriteContent(IHtmlWriter writer, IHtmlExportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.Write(IHtmlWriter writer, IHtmlExportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.WriteContent(IHtmlWriter writer, IHtmlExportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Model.Elements.HtmlElementBase.Write(IHtmlWriter writer, IHtmlExportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.Export.HtmlExporter.Export(IHtmlWriter writer, IHtmlExportContext context)
   at Telerik.Windows.Documents.Flow.FormatProviders.Html.HtmlFormatProvider.ExportOverride(RadFlowDocument document, Stream output)
   at Telerik.Windows.Documents.Common.FormatProviders.TextBasedFormatProviderBase`1.Export(T document)
   at Unite.Infrastructure.SQL.Repositories.ConsentRepository.GetHtmlFromDocument(RadFlowDocument document) in D:\WorkSpace\Unite2.0\Dev Branch\Unite\Unite.Infrastructure.SQL\Repositories\ConsentRepository.cs:line 337
6 answers
2.2K+ views
I don't remember signing up on this website so I'd like to delete my account, please help me
Dandre
Top achievements
Rank 1
 answered on 26 Jul 2023
1 answer
145 views

I created an account by signing in via Google. I've then followed the steps for adding the nuget feed to Visual Studio as described in https://docs.telerik.com/aspnet-mvc/installation/nuget-install#troubleshooting-issues-with-nuget. However, I'm unable to proceed past the Windows Authentication Dialog with my Google credentials.

Any ideas would be greatly appreciated.

Lance | Senior Manager Technical Support
Telerik team
 answered on 24 Jul 2023
0 answers
127 views

Hello I have being looking for examples on  using auto complete using tag helpers  but coulnt find any 

in my grid column i have

        <column field="TechnicianAssigned" width="250" editor="categoryDropDownEditor" />

 

 and the categoryDropDownEditor has  code as below....the code hits the  url but not sure how to pass the data from column to  method and serach the functionality.Any example would be helpful.

 

   function categoryDropDownEditor(data) {
            $('<input data-bind="value: value" name="' + data.field + '"/>')
                .kendoAutoComplete({
                    dataSource: {
                        transport: {
                            read: {
                                url: "/Home/EmpSearchData",
                                dataType: "jsonp"
                            }
                        }
                    },
                    dataTextField: "ename",

                    filter: "contains",
                    minLength: 4
                });
        }
Rajesh
Top achievements
Rank 1
Iron
 asked on 19 Jul 2023
0 answers
90 views

I need to export my RadGrid, which displays correctly, to an Excel file. But when I click the Export To Excel button, it doesn't export. Instead, the entire Command Item bar disappears.

The same thing is happening on another RadGrid on the same page, but clicking the Export To Excel button also removes paging from the RadGrid, so that it displays all of the data.

Here is the markup for the second RadGrid:

    <telerik:RadGrid ID="rgPickedDetail" runat="server" AllowFilteringByColumn="False" AllowPaging="True" OnItemCommand="rgPickedDetail_ItemCommand"
        AllowSorting="True" DataSourceID="DetailDataSource" ShowStatusBar="True" PageSize="15" OnItemDataBound="rgPickedDetail_ItemDataBound"
        Skin="Telerik" AllowAutomaticUpdates="true" AutoGenerateColumns="False">
        <ExportSettings HideStructureColumns="true" Excel-Format="Xlsx" ExportOnlyData="true" IgnorePaging="true" />
        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
        <MasterTableView CommandItemDisplay="Top" HierarchyLoadMode="ServerOnDemand" AllowSorting="false" AutoGenerateColumns="false">
            <CommandItemSettings ShowExportToCsvButton="true" ShowExportToExcelButton="true" ShowAddNewRecordButton="false" ShowRefreshButton="true" />
            <Columns>
                <telerik:GridBoundColumn DataField="Plant" DataType="System.String" HeaderText="Plant" ReadOnly="True" UniqueName="Plant" />
                <telerik:GridBoundColumn DataField="PartNum" DataType="System.String" HeaderText="Part" ReadOnly="True" UniqueName="PartNum" />
                <telerik:GridBoundColumn DataField="SerialNum" DataType="System.String" HeaderText="Serial number" ReadOnly="True" UniqueName="SerialNum" />
                <telerik:GridBoundColumn DataField="QtyPicked" DataType="System.Int32" HeaderText="Picked" ReadOnly="True" UniqueName="QtyPicked" />
                <telerik:GridBoundColumn DataField="QtyReq" DataType="System.Int32" HeaderText="Requested" ReadOnly="True" UniqueName="QtyReq" />
                <telerik:GridBoundColumn DataField="Scanned" DataType="System.DateTime" DataFormatString="{0:M/d/yy HH:mm}" HeaderText="Scanned" ReadOnly="True" UniqueName="Scanned" />
                <telerik:GridBoundColumn DataField="FromLoc" DataType="System.String" HeaderText="From" ReadOnly="True" UniqueName="FromLoc" />
                <telerik:GridBoundColumn DataField="ToLoc" DataType="System.String" HeaderText="To" ReadOnly="True" UniqueName="ToLoc" />
                <telerik:GridBoundColumn DataField="Picked" DataType="System.Boolean" Display="false" HeaderText="Picked (invisible)" UniqueName="Picked" />
            </Columns>
        </MasterTableView>
    </telerik:RadGrid>

Here is the relevant code-behind:


    Shared ReportDate As Date

    Protected Sub Page_Load(sender As Object, e As EventArgs) Handles Me.Load
        If ReportDate = Nothing Then
            ReportDate = Today
            StartDate.SelectedDate = ReportDate
        End If
        SetReportDate()

        If Not Page.IsPostBack Then
        End If
    End Sub

    Protected Sub MessageBox(msg As String)
        ScriptManager.RegisterStartupScript(Me, Me.GetType, "WindowsScript", "alert('" + msg + "');", True)
    End Sub

    Protected Sub rgPickedDetail_ItemDataBound(sender As Object, e As GridItemEventArgs)
        If e.Item.GetType() Is GetType(GridDataItem) Then
            Dim item As GridDataItem = e.Item
            item.ForeColor = IIf(item("Picked").Text = "True", Color.Green, Color.Red)
        End If
    End Sub

    Protected Sub StartDate_SelectedDateChanged(sender As Object, e As Calendar.SelectedDateChangedEventArgs)
        ReportDate = e.NewDate
        SetReportDate()
        rgPickedSummary.Rebind()
        rgPickedDetail.Rebind()
    End Sub

    Private Sub SetReportDate()
        SummaryDataSource.SelectParameters("StartDate").DefaultValue = ReportDate
        DetailDataSource.SelectParameters("StartDate").DefaultValue = ReportDate
    End Sub

    Protected Sub rgPickedDetail_ItemCommand(sender As Object, e As GridCommandEventArgs)
        If e.CommandName = "ExportToExcel" Then
            rgPickedDetail.Rebind()
        End If
    End Sub

    Protected Sub rgPickedDetail_ItemCreated(sender As Object, e As GridItemEventArgs) Handles rgPickedDetail.ItemCreated
        If TypeOf e.Item Is GridCommandItem Then
            ScriptManager.GetCurrent(Page).RegisterPostBackControl(e.Item.FindControl("ExportToExcelButton"))
        End If
    End Sub

    Protected Sub rgPickedSummary_ItemCreated(sender As Object, e As GridItemEventArgs) Handles rgPickedSummary.ItemCreated
        If TypeOf e.Item Is GridCommandItem Then
            ScriptManager.GetCurrent(Page).RegisterPostBackControl(e.Item.FindControl("ExportToExcelButton"))
        End If
    End Sub
In my research, I have seen some people have problems like this when they are using Ajax, but my project has no references to Ajax inside it.
Lee
Top achievements
Rank 1
 asked on 19 Jul 2023
0 answers
84 views

你好

我想删除 Telerik 用户帐户,但找不到任何有关如何执行此操作的提示。

谢谢

 
Top achievements
Rank 1
 asked on 18 Jul 2023
1 answer
149 views

Are there any Demo's where I can take a Report that has a Property and underneath that property is 5 owners. I would need the report to print the same report for 5 owners.

 

This is my current report using Jaspersoft which we are trying to get rid of.

Dimitar
Telerik team
 answered on 22 Jun 2023
1 answer
255 views

Kendo grid  Issue while doing  server side paging and client side sorting ,filtering  in dot net core mvc 

Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?