Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[split] Array in numpy
#1
I renamed __init__.py to numpy.py
I run >>> import numpy as np
I run >>> np.__file__ 'C:\Adrian\Python37\Lib\numpy-1.11.2\numpy\numpy.py'
SyntaxError: invalid syntax
what should my last command be?
Reply
#2
Please don't hi-jack threads. Post your questions in separate thread.
Please, use proper tags when post code, traceback, output, etc.
See BBcode help for more info.
It's not clear what you talk about. what __init__.py file you renamed and why you decide you need to rename it?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Numpy] How to store different data type in one numpy array? water 7 545 Mar-26-2024, 02:18 PM
Last Post: snippsat
  reshaping 2D numpy array paul18fr 3 1,009 Jan-03-2023, 06:45 PM
Last Post: paul18fr
  Numpy returns "TypeError: unsupported operand type(s) for *: 'numpy.ufunc' and 'int'" kalle 2 2,604 Jul-19-2022, 06:31 AM
Last Post: paul18fr
  Numpy array BrianPA 13 4,954 Jan-23-2021, 09:36 AM
Last Post: Serafim
  Nested array API call, how to split into its own column? new2datasci 0 1,639 Nov-27-2020, 06:46 AM
Last Post: new2datasci
  How to fill datetime64 field in numpy structured array? AlekseyPython 0 2,267 Oct-20-2020, 08:17 AM
Last Post: AlekseyPython
  Adding data in 3D array from 2D numpy array asmasattar 0 2,218 Jul-23-2020, 10:55 AM
Last Post: asmasattar
  converting dataframe to int numpy array glennford49 1 2,317 Apr-04-2020, 06:15 AM
Last Post: snippsat
  Replacing sub array in Numpy array ThemePark 5 4,166 Apr-01-2020, 01:16 PM
Last Post: ThemePark
  How to prepare a NumPy array which include float type array elements subhash 0 1,911 Mar-02-2020, 06:46 AM
Last Post: subhash

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020