User Profile

Collapse

Profile Sidebar

Collapse
phantom2000
phantom2000
Last Activity: Dec 13 '22, 06:38 AM
Joined: Oct 23 '16
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • phantom2000
    started a topic Sort by month in a plot

    Sort by month in a plot

    I am using the following code to plot a graph.

    Code:
    import pandas as pd
    import numpy as np
    import matplotlib as mpl
    import matplotlib.pyplot as plt
    import folium
    from folium import plugins
     
    crime_data = pd.read_csv('~/Desktop/Assignments/Python/crime_data_sw_police_2021.csv')
    crime_data = crime_data.iloc[:,[1,4,5,9,10]]
    
    crime_data = crime_data.dropna() # Removing rows
    ...
    See more | Go to post

  • phantom2000
    replied to Cross-thread operation not valid
    Below is my full code. Program starts to break on model.Text = Model_Number. And then it goes to the other label controls.

    Code:
    using MobileDevice;
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.IO;
    using System.Linq;
    using System.Net;
    using System.Text;
    using System.Text.RegularExpressions;
    ...
    See more | Go to post

    Leave a comment:


  • phantom2000
    started a topic Cross-thread operation not valid

    Cross-thread operation not valid

    I'm using the below code to update a progress bar.

    Code:
    if (read_success == true && global_variables.csvtext == "not found")
                   {
                        this.Unknown_Device.Text = "Writing CSV. Please wait.";
                        backgroundWorker1.RunWorkerAsync();
                   }
    
    rivate void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
    ...
    See more | Go to post
No activity results to display
Show More
Working...