Skip to content

海外华人红娘

  • Home
  • Activity
  • Digital Dating
    • Store
    • Cart
    • My account
    • Checkout
  • Members
  • Groups
  • Data Scientist
    • Interview
    • Python
    • R
    • SQL
    • Excel
    • Miscellaneous
    • EOnline
  • Membership
  • Log In
  • Booking Form
  • Booking Received
  • Ticket Receipt
  • Ticket Details

Python

‘DataFrame’ object has no attribute ‘as_matrix’

September 28, 2020 by lilo
Categories Python Leave a comment

How to check a function profile in detail using profiler

September 27, 2020September 27, 2020 by lilo

profiling and timing code: link %load_ext line_profilerpredicted = predict(pandas_df) #put the function to get profile from%prun predict(pandas_df)

Categories Python Leave a comment

How to test running time of a function

September 27, 2020September 27, 2020 by lilo

import time start_time = time.time()predicted = class.predict(pandas_df) #this include the function to testprint((time.time() – start_time))

Categories Python Leave a comment

How to rename columns for pandas dataframe

September 27, 2020September 27, 2020 by lilo

rename a pandas dataframe with names from ‘0’ to ‘100’: pd_data_frame.columns = [str(_) for _ in range(99)]

Categories Python Leave a comment

Python Programming Tutorial from thenewboston, recommended

November 20, 2017November 18, 2017 by lilo

link to youtube tutorial

Categories Python Leave a comment

Spyder did not work any more from Anaconda (02/18/2017). Here is the solution.

February 19, 2017 by lilo

My spyder did not work any more from Anaconda. Here is the solution based on this post. Open your Terminal and use the command below. (there is a file called .spyder or something like this. This file might be broken. So we can rename it first, then open spyder from Anaconda to generate a new … Read more

Categories Python Leave a comment

Subscribe via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

© 2025 海外华人红娘 • Built with GeneratePress